forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
convert-source-map.d.ts
27 lines (22 loc) · 946 Bytes
/
convert-source-map.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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/borisyankov/DefinitelyTyped
declare module "convert-source-map" {
export interface SourceMapConverter {
toObject(): any;
toJSON(space?): string;
toBase64(): string;
toComment(): string;
addProperty(key, value): SourceMapConverter;
setProperty(key, value): SourceMapConverter;
getProperty(key): any;
}
export function removeComments(src): string;
export var commentRegex: RegExp;
export function fromObject(obj): SourceMapConverter;
export function fromJSON(json: string): SourceMapConverter;
export function fromBase64(base64: string): SourceMapConverter;
export function fromComment(comment: string): SourceMapConverter;
export function fromSource(source: string): SourceMapConverter;
}