Const
// Register it on the container
container.register(appErrorProvider);
// Getting access to the class.
const AppError = container.get<AppErrorClass>('AppError');
// Getting access to the function.
const appError = container.get<CreateAppErrorFn>('appError');
Generated using TypeDoc
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.