From 385763e2d928ffca0d801a680f80d63cd412031e Mon Sep 17 00:00:00 2001 From: Melvin Groenhoff Date: Mon, 24 Oct 2016 13:21:06 +0200 Subject: [PATCH] Update convert-source-map typings to match it's API at 1.3.0 --- convert-source-map/index.d.ts | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/convert-source-map/index.d.ts b/convert-source-map/index.d.ts index 22fda2b62b..2942976fc8 100644 --- a/convert-source-map/index.d.ts +++ b/convert-source-map/index.d.ts @@ -1,26 +1,27 @@ -// Type definitions for convert-source-map +// Type definitions for convert-source-map v1.3.0 // Project: https://github.com/thlorenz/convert-source-map // Definitions by: Andrew Gaspar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - export interface SourceMapConverter { toObject(): any; toJSON(space?: any): string; toBase64(): string; - toComment(): string; - - addProperty(key: string, value: any): SourceMapConverter; - setProperty(key: string, value: any): SourceMapConverter; - + toComment(options?: { multiline?: boolean; }): string; + addProperty(key: string, value: any): this; + setProperty(key: string, value: any): this; getProperty(key: string): any; } -export declare function removeComments(src: string): string; -export declare var commentRegex: RegExp; - export declare function fromObject(obj: any): SourceMapConverter; export declare function fromJSON(json: string): SourceMapConverter; export declare function fromBase64(base64: string): SourceMapConverter; export declare function fromComment(comment: string): SourceMapConverter; -export declare function fromSource(source: string): SourceMapConverter; +export declare function fromMapFileComment(comment: string, mapFileDir: string): SourceMapConverter; +export declare function fromSource(source: string, largeSource?: boolean): SourceMapConverter | null; +export declare function fromMapFileSource(source: string, mapFileDir: string): SourceMapConverter | null; +export declare function removeComments(src: string): string; +export declare function removeMapFileComments(src: string): string; +export declare function generateMapFileComment(file: string, options?: { multiline?: boolean; }): string; +export declare var commentRegex: RegExp; +export declare var mapFileCommentRegex: RegExp;