@types/correlation-id
TypeScript icon, indicating that this package has built-in type declarations

2.1.4 • Public • Published

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 .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/correlation-id

Weekly Downloads

2,408

Version

2.1.4

License

MIT

Unpacked Size

2.98 kB

Total Files

5

Last publish

Collaborators

  • types