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; }