From ecf79c1d6862e6c8177b30f9b42e49d45ef6da5b Mon Sep 17 00:00:00 2001 From: andretshurotshka Date: Wed, 6 Feb 2019 16:31:16 +0500 Subject: [PATCH] Change with type to overload --- source-map.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source-map.d.ts b/source-map.d.ts index 24593915..0db7ea51 100644 --- a/source-map.d.ts +++ b/source-map.d.ts @@ -236,6 +236,8 @@ export interface SourceMapConsumerConstructor { * console.log(xSquared); * ``` */ + with(rawSourceMap: RawSourceMap, sourceMapUrl: SourceMapUrl | null | undefined, callback: (consumer: BasicSourceMapConsumer) => Promise | T): Promise; + with(rawSourceMap: RawIndexMap, sourceMapUrl: SourceMapUrl | null | undefined, callback: (consumer: IndexedSourceMapConsumer) => Promise | T): Promise; with(rawSourceMap: RawSourceMap | RawIndexMap | string, sourceMapUrl: SourceMapUrl | null | undefined, callback: (consumer: BasicSourceMapConsumer | IndexedSourceMapConsumer) => Promise | T): Promise; }