Installation
npm install --save @types/correlation-id
Summary
This package contains type definitions for correlation-id (https://github.com/toboid/correlation-id#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/correlation-id.
index.d.ts
export function withId<T>(id: string, work: () => T): T;
export function withId<T>(work: () => T): T;
export function bindId<T extends (...p: any[]) => any>(id: string, work: T): T;
export function bindId<T extends (...p: any[]) => any>(work: T): T;
export function getId(): string | undefined;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by .