2.1.4 • Published 7 months ago

@types/correlation-id v2.1.4

Weekly downloads
498
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for correlation-id 2.1
// Project: https://github.com/toboid/correlation-id#readme
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 23 Dec 2021 23:34:27 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by DefinitelyTyped.