DefinitelyTyped/types/express-request-id/express-request-id-tests.ts
jgeth 12edf9c921 Adds type definitions for 'express-request-id' (#36411)
Adds type definitions and tests
Adds tsconfig and tslint config
2019-06-27 16:54:16 -07:00

13 lines
276 B
TypeScript

import * as expressRequestId from 'express-request-id';
const options: expressRequestId.Options = {
uuidVersion: 'v4',
setHeader: false,
headerName: 'X-Request-Id',
attributeName: 'id',
};
expressRequestId();
expressRequestId({});
expressRequestId(options);