@types/cls-hooked
Advanced tools
Comparing version 4.3.2 to 4.3.3
@@ -10,17 +10,15 @@ // Type definitions for cls-hooked 4.3 | ||
export type Context = object; | ||
export interface Namespace { | ||
active: Context | null; | ||
active: any; | ||
set<T>(key: string, value: T): T; | ||
get(key: string): any; | ||
run(fn: (context: Context) => void): Context; | ||
runAndReturn<T>(fn: (context: Context) => T): T; | ||
runPromise<T>(fn: (context: Context) => Promise<T>): Promise<T>; | ||
bind<F extends Function>(fn: F, context?: Context): F; // tslint:disable-line: ban-types | ||
run(fn: (...args: any[]) => void): void; | ||
runAndReturn<T>(fn: (...args: any[]) => T): T; | ||
runPromise<T>(fn: (...args: any[]) => Promise<T>): Promise<T>; | ||
bind<F extends Function>(fn: F, context?: any): F; // tslint:disable-line: ban-types | ||
bindEmitter(emitter: EventEmitter): void; | ||
createContext(): Context; | ||
enter(context: Context): void; | ||
exit(context: Context): void; | ||
createContext(): any; | ||
enter(context: any): void; | ||
exit(context: any): void; | ||
} | ||
@@ -27,0 +25,0 @@ |
{ | ||
"name": "@types/cls-hooked", | ||
"version": "4.3.2", | ||
"version": "4.3.3", | ||
"description": "TypeScript definitions for cls-hooked", | ||
@@ -24,4 +24,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "2690c730057e7e60ab7cf812148fc521d82ccd1158a5535e439a27e94a717362", | ||
"typesPublisherContentHash": "f03f88fdc3a8d63eb66171f29a2ac94c4c3aaf749b6bca864b597a0a3345b83a", | ||
"typeScriptVersion": "3.4" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 04 Feb 2021 15:34:28 GMT | ||
* Last updated: Fri, 05 Feb 2021 05:00:40 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
3411
23