From d974a30c854cf06518b40511663c94494ba24d98 Mon Sep 17 00:00:00 2001 From: Cahya Pribadi <534150+ozylog@users.noreply.github.com> Date: Mon, 25 Jun 2018 10:36:55 +1200 Subject: [PATCH] Add runPromise(fn) --- types/cls-hooked/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/cls-hooked/index.d.ts b/types/cls-hooked/index.d.ts index 6d0a68aa6e..57e6b79c60 100644 --- a/types/cls-hooked/index.d.ts +++ b/types/cls-hooked/index.d.ts @@ -14,6 +14,7 @@ export interface Namespace { get(key: string): any; run(fn: (...args: any[]) => void): void; runAndReturn(fn: (...args: any[]) => T): T; + runPromise(fn: (...args: any[]) => Promise): Promise; bind(fn: F, context?: any): F; // tslint:disable-line: ban-types bindEmitter(emitter: EventEmitter): void; createContext(): any;