DefinitelyTyped/convert-source-map/convert-source-map.d.ts
2016-04-22 14:12:45 -07:00

27 lines
999 B
TypeScript

// Type definitions for convert-source-map
// Project: https://github.com/thlorenz/convert-source-map
// Definitions by: Andrew Gaspar <https://github.com/AndrewGaspar/>
// 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;
getProperty(key: string): any;
}
declare export function removeComments(src: string): string;
declare export var commentRegex: RegExp;
declare export function fromObject(obj: any): SourceMapConverter;
declare export function fromJSON(json: string): SourceMapConverter;
declare export function fromBase64(base64: string): SourceMapConverter;
declare export function fromComment(comment: string): SourceMapConverter;
declare export function fromSource(source: string): SourceMapConverter;