Const
// Register it on the container
container.register(httpErrorProvider);
// Getting access to the class.
const HTTPError = container.get<HTTPErrorClass>('HTTPError');
// Getting access to the function.
const httpError = container.get<CreateHTTPErrorFn>('httpError');
Generated using TypeDoc
A service provider that will register both the HTTPError and a generator function on the container.
HTTPError
will be the key for class, andhttpError
will be for the generator function.