@villedemontreal/correlation-id
Version:
Express middleware to set a correlation in Express. The correlation id will be consistent across async calls within the handling of a request.
16 lines • 552 B
TypeScript
import { ILogger } from '@villedemontreal/logger';
/**
* Inits the library.
*/
export declare function init(loggerCreator: (name: string) => ILogger): void;
/**
* Is the library properly initialized?
*
* This function MUST be named "isInited()"!
* Code using this library may loop over all its "@villemontreal"
* dependencies and, if one of those exports a "isInited" fonction,
* it will enforce that the lib has been properly initialized before
* starting...
*/
export declare function isInited(): boolean;
//# sourceMappingURL=init.d.ts.map