Skip to content

Commit a36f46f

Browse files
authored
Merge pull request #520 from arcanis/patch-1
Fixes types for SourceMapConsumer.initialize
2 parents 801be93 + 25ff939 commit a36f46f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

source-map.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,6 @@ export interface SourceMappings {
8484
}
8585

8686
export interface SourceMapConsumer {
87-
/**
88-
* When using SourceMapConsumer outside of node.js, for example on the Web, it
89-
* needs to know from what URL to load lib/mappings.wasm. You must inform it
90-
* by calling initialize before constructing any SourceMapConsumers.
91-
*
92-
* @param mappings an object with the following property:
93-
* - "lib/mappings.wasm": A String containing the URL of the
94-
* lib/mappings.wasm file, or an ArrayBuffer with the contents of
95-
* lib/mappings.wasm.
96-
*/
97-
initialize(mappings: SourceMappings): void;
98-
9987
/**
10088
* Compute the last column for each generated mapping. The last column is
10189
* inclusive.
@@ -237,6 +225,18 @@ export interface SourceMapConsumerConstructor {
237225
sourceMapUrl?: SourceMapUrl
238226
): Promise<BasicSourceMapConsumer | IndexedSourceMapConsumer>;
239227

228+
/**
229+
* When using SourceMapConsumer outside of node.js, for example on the Web, it
230+
* needs to know from what URL to load lib/mappings.wasm. You must inform it
231+
* by calling initialize before constructing any SourceMapConsumers.
232+
*
233+
* @param mappings an object with the following property:
234+
* - "lib/mappings.wasm": A String containing the URL of the
235+
* lib/mappings.wasm file, or an ArrayBuffer with the contents of
236+
* lib/mappings.wasm.
237+
*/
238+
initialize(mappings: SourceMappings): void;
239+
240240
/**
241241
* Create a BasicSourceMapConsumer from a SourceMapGenerator.
242242
*

0 commit comments

Comments
 (0)