0.11.8 • Published 12 months ago

@types/zipkin-context-cls v0.11.8

Weekly downloads
506
License
MIT
Repository
github
Last release
12 months ago

Installation

npm install --save @types/zipkin-context-cls

Summary

This package contains type definitions for zipkin-context-cls (https://github.com/openzipkin/zipkin-js#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/zipkin-context-cls.

index.d.ts

// Type definitions for zipkin-context-cls 0.11
// Project: https://github.com/openzipkin/zipkin-js#readme
// Definitions by: York Yao <https://github.com/plantain-00>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import { Context, TraceId } from 'zipkin';

declare class CLSContext implements Context<any> {
    setContext(ctx: TraceId): void;
    getContext(): TraceId;
    scoped<V>(callback: () => V): V;
    letContext<V>(ctx: TraceId, callback: () => V): V;
    constructor(name: string, supportAsyncAwait?: boolean)
}

export = CLSContext;

Additional Details

  • Last updated: Fri, 21 Jan 2022 13:31:34 GMT
  • Dependencies: @types/zipkin
  • Global values: none

Credits

These definitions were written by York Yao.

0.11.8

12 months ago

0.11.4

2 years ago

0.11.5

2 years ago

0.11.6

2 years ago

0.11.7

2 years ago

0.11.3

3 years ago

0.11.2

7 years ago

0.11.1

7 years ago

0.11.0

7 years ago