-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
29 lines (28 loc) · 802 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { providers } from '../../utils';
import { appErrorProvider } from './appError';
import { httpErrorProvider } from './httpError';
import { sendFileProvider } from './sendFile';
/**
* Registers all the common services on the container.
*
* - {@link AppError | appError}
* - {@link HTTPError | httpError}
* - {@link SendFile | sendFile}
*
* @example
*
* // Register the collection on the container
* container.register(commonServicesProvider);
* // Getting access to one the services instance
* const sendFile = container.get<SendFile>('sendFile');
*
* @group Providers
*/
export const commonServicesProvider = providers({
appErrorProvider,
httpErrorProvider,
sendFileProvider,
});
export * from './appError';
export * from './httpError';
export * from './sendFile';