File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 3
3
// Definitions by: Morten Houston Ludvigsen <https://github.com/MortenHoustonLudvigsen>,
4
4
// Ron Buckton <https://github.com/rbuckton>
5
5
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
+ export type SourceMapUrl = string ;
7
+
6
8
export interface StartOfSourceMap {
7
9
file ?: string ;
8
10
sourceRoot ?: string ;
@@ -186,17 +188,17 @@ export interface SourceMapConsumerConstructor {
186
188
GREATEST_LOWER_BOUND : number ;
187
189
LEAST_UPPER_BOUND : number ;
188
190
189
- new ( rawSourceMap : RawSourceMap ) : BasicSourceMapConsumer ;
190
- new ( rawSourceMap : RawIndexMap ) : IndexedSourceMapConsumer ;
191
- new ( rawSourceMap : RawSourceMap | RawIndexMap | string ) : BasicSourceMapConsumer | IndexedSourceMapConsumer ;
191
+ new ( rawSourceMap : RawSourceMap , sourceMapUrl ?: SourceMapUrl ) : BasicSourceMapConsumer ;
192
+ new ( rawSourceMap : RawIndexMap , sourceMapUrl ?: SourceMapUrl ) : IndexedSourceMapConsumer ;
193
+ new ( rawSourceMap : RawSourceMap | RawIndexMap | string , sourceMapUrl ?: SourceMapUrl ) : BasicSourceMapConsumer | IndexedSourceMapConsumer ;
192
194
193
195
/**
194
196
* Create a BasicSourceMapConsumer from a SourceMapGenerator.
195
197
*
196
198
* @param sourceMap
197
199
* The source map that will be consumed.
198
200
*/
199
- fromSourceMap ( sourceMap : SourceMapGenerator ) : BasicSourceMapConsumer ;
201
+ fromSourceMap ( sourceMap : SourceMapGenerator , sourceMapUrl ?: SourceMapUrl ) : BasicSourceMapConsumer ;
200
202
}
201
203
202
204
export const SourceMapConsumer : SourceMapConsumerConstructor ;
You can’t perform that action at this time.
0 commit comments