A service provider that will register both, AppError and
createAppError, on the container. AppError will be the key for class, and
appError will be for the generator function.
Example
// Register it on the container container.register(appErrorProvider); // Getting access to the class. constAppError = container.get<AppErrorClass>('AppError'); // Getting access to the function. constappError = container.get<CreateAppErrorFn>('appError');
A service provider that will register both, AppError and createAppError, on the container.
AppError
will be the key for class, andappError
will be for the generator function.