diff --git a/source-map.d.ts b/source-map.d.ts index 8bd5b6a1..45646052 100644 --- a/source-map.d.ts +++ b/source-map.d.ts @@ -84,18 +84,6 @@ export interface SourceMappings { } export interface SourceMapConsumer { - /** - * When using SourceMapConsumer outside of node.js, for example on the Web, it - * needs to know from what URL to load lib/mappings.wasm. You must inform it - * by calling initialize before constructing any SourceMapConsumers. - * - * @param mappings an object with the following property: - * - "lib/mappings.wasm": A String containing the URL of the - * lib/mappings.wasm file, or an ArrayBuffer with the contents of - * lib/mappings.wasm. - */ - initialize(mappings: SourceMappings): void; - /** * Compute the last column for each generated mapping. The last column is * inclusive. @@ -237,6 +225,18 @@ export interface SourceMapConsumerConstructor { sourceMapUrl?: SourceMapUrl ): Promise; + /** + * When using SourceMapConsumer outside of node.js, for example on the Web, it + * needs to know from what URL to load lib/mappings.wasm. You must inform it + * by calling initialize before constructing any SourceMapConsumers. + * + * @param mappings an object with the following property: + * - "lib/mappings.wasm": A String containing the URL of the + * lib/mappings.wasm file, or an ArrayBuffer with the contents of + * lib/mappings.wasm. + */ + initialize(mappings: SourceMappings): void; + /** * Create a BasicSourceMapConsumer from a SourceMapGenerator. *