3.0.0 • Published 2 years ago

@types/express-request-id v3.0.0

Weekly downloads
7,897
License
MIT
Repository
-
Last release
2 years ago

Installation

npm install --save @types/express-request-id

Summary

This package contains type definitions for express-request-id (https://github.com/floatdrop/express-request-id).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-request-id.

index.d.ts

// Type definitions for express-request-id 1.4
// Project: https://github.com/floatdrop/express-request-id
// Definitions by: jgeth <https://github.com/jgeth>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import { RequestHandler } from 'express-serve-static-core';

declare namespace expressRequestId {
    interface Options {
        uuidVersion?: string | undefined;
        setHeader?: boolean | undefined;
        headerName?: string | undefined;
        attributeName?: string | undefined;
        msecs?: Date;
        nsecs?: number;
        clockseq?: number;
        node?: number[];
    }
}

declare function expressRequestId(options?: expressRequestId.Options): RequestHandler;
export = expressRequestId;

Additional Details

Credits

These definitions were written by jgeth.