Variable appErrorProviderConst

appErrorProvider: Resource<"provider", "register", ProviderRegisterFn<Jimpex>> = ...

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.

// 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');