forked from vuejs/vue
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodules.js
48 lines (44 loc) · 1.15 KB
/
modules.js
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
declare module 'he' {
declare function escape(html: string): string;
declare function decode(html: string): string;
}
declare module 'source-map' {
declare class SourceMapGenerator {
setSourceContent(filename: string, content: string): void;
addMapping(mapping: Object): void;
toString(): string;
}
declare class SourceMapConsumer {
originalPositionFor(position: { line: number; column: number; }): {
source: ?string;
line: ?number;
column: ?number;
};
}
}
declare module 'lru-cache' {
declare var exports: {
(): any
}
}
declare module 'de-indent' {
declare var exports: {
(input: string): string
}
}
declare module 'vue-ssr-html-stream' {
declare interface parsedTemplate {
head: string;
neck: string;
tail: string;
}
declare interface HTMLStreamOptions {
template: string | parsedTemplate;
context?: ?Object;
}
declare class exports extends stream$Transform {
constructor(options: HTMLStreamOptions): void;
static parseTemplate(template: string): parsedTemplate;
static renderTemplate(template: parsedTemplate, content: string, context?: ?Object): string;
}
}