Skip to content

Commit 60d7953

Browse files
committed
update d.ts
1 parent a16a4fc commit 60d7953

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source-map.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ export interface SourceMapConsumerConstructor {
194194
GREATEST_LOWER_BOUND: number;
195195
LEAST_UPPER_BOUND: number;
196196

197-
new (rawSourceMap: RawSourceMap, sourceMapUrl?: SourceMapUrl): Promise<BasicSourceMapConsumer>;
198-
new (rawSourceMap: RawIndexMap, sourceMapUrl?: SourceMapUrl): Promise<IndexedSourceMapConsumer>;
199-
new (rawSourceMap: RawSourceMap | RawIndexMap | string, sourceMapUrl?: SourceMapUrl): Promise<BasicSourceMapConsumer | IndexedSourceMapConsumer>;
197+
new (rawSourceMap: RawSourceMap, sourceMapUrl?: SourceMapUrl): BasicSourceMapConsumer;
198+
new (rawSourceMap: RawIndexMap, sourceMapUrl?: SourceMapUrl): IndexedSourceMapConsumer;
199+
new (rawSourceMap: RawSourceMap | RawIndexMap | string, sourceMapUrl?: SourceMapUrl): BasicSourceMapConsumer | IndexedSourceMapConsumer;
200200

201201
/**
202202
* Create a BasicSourceMapConsumer from a SourceMapGenerator.
@@ -251,7 +251,7 @@ export interface BasicSourceMapConsumer extends SourceMapConsumer {
251251
export interface BasicSourceMapConsumerConstructor {
252252
prototype: BasicSourceMapConsumer;
253253

254-
new (rawSourceMap: RawSourceMap | string): Promise<BasicSourceMapConsumer>;
254+
new (rawSourceMap: RawSourceMap | string): BasicSourceMapConsumer;
255255

256256
/**
257257
* Create a BasicSourceMapConsumer from a SourceMapGenerator.
@@ -271,7 +271,7 @@ export interface IndexedSourceMapConsumer extends SourceMapConsumer {
271271
export interface IndexedSourceMapConsumerConstructor {
272272
prototype: IndexedSourceMapConsumer;
273273

274-
new (rawSourceMap: RawIndexMap | string): Promise<IndexedSourceMapConsumer>;
274+
new (rawSourceMap: RawIndexMap | string): IndexedSourceMapConsumer;
275275
}
276276

277277
export const IndexedSourceMapConsumer: IndexedSourceMapConsumerConstructor;

0 commit comments

Comments
 (0)