@@ -195,23 +195,23 @@ export interface SourceMapConsumerConstructor {
195
195
GREATEST_LOWER_BOUND : number ;
196
196
LEAST_UPPER_BOUND : number ;
197
197
198
- new ( rawSourceMap : RawSourceMap , sourceMapUrl ?: SourceMapUrl ) : Promise < BasicSourceMapConsumer > ;
199
- new ( rawSourceMap : RawIndexMap , sourceMapUrl ?: SourceMapUrl ) : Promise < IndexedSourceMapConsumer > ;
200
- new ( rawSourceMap : RawSourceMap | RawIndexMap | string , sourceMapUrl ?: SourceMapUrl ) : Promise <
198
+ new ( rawSourceMap : RawSourceMap , sourceMapUrl ?: SourceMapUrl ) : BasicSourceMapConsumer ;
199
+ new ( rawSourceMap : RawIndexMap , sourceMapUrl ?: SourceMapUrl ) : IndexedSourceMapConsumer ;
200
+ new ( rawSourceMap : RawSourceMap | RawIndexMap | string , sourceMapUrl ?: SourceMapUrl ) :
201
201
BasicSourceMapConsumer | IndexedSourceMapConsumer
202
- > ;
202
+ ;
203
203
204
204
/**
205
205
* Create a BasicSourceMapConsumer from a SourceMapGenerator.
206
206
*
207
207
* @param sourceMap
208
208
* The source map that will be consumed.
209
209
*/
210
- fromSourceMap ( sourceMap : SourceMapGenerator , sourceMapUrl ?: SourceMapUrl ) : Promise < BasicSourceMapConsumer > ;
210
+ fromSourceMap ( sourceMap : SourceMapGenerator , sourceMapUrl ?: SourceMapUrl ) : BasicSourceMapConsumer ;
211
211
212
212
/**
213
213
* Construct a new `SourceMapConsumer` from `rawSourceMap` and `sourceMapUrl`
214
- * (see the `SourceMapConsumer` constructor for details. Then, invoke the `async
214
+ * (see the `SourceMapConsumer` constructor for details. Then, invoke the `
215
215
* function f(SourceMapConsumer) -> T` with the newly constructed consumer, wait
216
216
* for `f` to complete, call `destroy` on the consumer, and return `f`'s return
217
217
* value.
@@ -225,7 +225,7 @@ export interface SourceMapConsumerConstructor {
225
225
* const xSquared = SourceMapConsumer.with(
226
226
* myRawSourceMap,
227
227
* null,
228
- * async function (consumer) {
228
+ * function (consumer) {
229
229
* // Use `consumer` inside here and don't worry about remembering
230
230
* // to call `destroy`.
231
231
*
@@ -242,8 +242,8 @@ export interface SourceMapConsumerConstructor {
242
242
with < T > (
243
243
rawSourceMap : RawSourceMap | RawIndexMap | string ,
244
244
sourceMapUrl : SourceMapUrl | null | undefined ,
245
- callback : ( consumer : BasicSourceMapConsumer | IndexedSourceMapConsumer ) => Promise < T > | T
246
- ) : Promise < T > ;
245
+ callback : ( consumer : BasicSourceMapConsumer | IndexedSourceMapConsumer ) => T
246
+ ) : T ;
247
247
}
248
248
249
249
export const SourceMapConsumer : SourceMapConsumerConstructor ;
@@ -258,15 +258,15 @@ export interface BasicSourceMapConsumer extends SourceMapConsumer {
258
258
export interface BasicSourceMapConsumerConstructor {
259
259
prototype : BasicSourceMapConsumer ;
260
260
261
- new ( rawSourceMap : RawSourceMap | string ) : Promise < BasicSourceMapConsumer > ;
261
+ new ( rawSourceMap : RawSourceMap | string ) : BasicSourceMapConsumer ;
262
262
263
263
/**
264
264
* Create a BasicSourceMapConsumer from a SourceMapGenerator.
265
265
*
266
266
* @param sourceMap
267
267
* The source map that will be consumed.
268
268
*/
269
- fromSourceMap ( sourceMap : SourceMapGenerator ) : Promise < BasicSourceMapConsumer > ;
269
+ fromSourceMap ( sourceMap : SourceMapGenerator ) : BasicSourceMapConsumer ;
270
270
}
271
271
272
272
export const BasicSourceMapConsumer : BasicSourceMapConsumerConstructor ;
@@ -278,7 +278,7 @@ export interface IndexedSourceMapConsumer extends SourceMapConsumer {
278
278
export interface IndexedSourceMapConsumerConstructor {
279
279
prototype : IndexedSourceMapConsumer ;
280
280
281
- new ( rawSourceMap : RawIndexMap | string ) : Promise < IndexedSourceMapConsumer > ;
281
+ new ( rawSourceMap : RawIndexMap | string ) : IndexedSourceMapConsumer ;
282
282
}
283
283
284
284
export const IndexedSourceMapConsumer : IndexedSourceMapConsumerConstructor ;
0 commit comments