2016-10-13 17:05:35 +08:00
|
|
|
declare module 'he' {
|
|
|
|
declare function escape(html: string): string;
|
|
|
|
declare function decode(html: string): string;
|
2016-06-15 02:15:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
declare module 'source-map' {
|
|
|
|
declare class SourceMapGenerator {
|
|
|
|
setSourceContent(filename: string, content: string): void;
|
|
|
|
addMapping(mapping: Object): void;
|
|
|
|
toString(): string;
|
|
|
|
}
|
2017-01-26 06:55:37 +08:00
|
|
|
declare class SourceMapConsumer {
|
2017-06-13 17:42:16 +08:00
|
|
|
constructor (map: Object): void;
|
2017-01-26 06:55:37 +08:00
|
|
|
originalPositionFor(position: { line: number; column: number; }): {
|
|
|
|
source: ?string;
|
|
|
|
line: ?number;
|
|
|
|
column: ?number;
|
|
|
|
};
|
|
|
|
}
|
2016-06-15 02:15:41 +08:00
|
|
|
}
|
2016-06-26 10:59:03 +08:00
|
|
|
|
|
|
|
declare module 'lru-cache' {
|
|
|
|
declare var exports: {
|
|
|
|
(): any
|
|
|
|
}
|
|
|
|
}
|
2016-06-28 16:52:18 +08:00
|
|
|
|
|
|
|
declare module 'de-indent' {
|
|
|
|
declare var exports: {
|
|
|
|
(input: string): string
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 00:17:23 +08:00
|
|
|
|
2017-03-27 18:19:52 +08:00
|
|
|
declare module 'serialize-javascript' {
|
|
|
|
declare var exports: {
|
|
|
|
(input: string, options: { isJSON: boolean }): string
|
2017-02-14 00:17:23 +08:00
|
|
|
}
|
|
|
|
}
|
2017-04-19 11:11:59 +08:00
|
|
|
|
|
|
|
declare module 'lodash.template' {
|
|
|
|
declare var exports: {
|
|
|
|
(input: string, options: { interpolate: RegExp, escape: RegExp }): Function
|
|
|
|
}
|
|
|
|
}
|