forked from zephraph/vue-theme-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.d.ts
40 lines (35 loc) · 928 Bytes
/
globals.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
28
29
30
31
32
33
34
35
36
37
38
39
40
declare module 'loader-utils' {
export function getOptions<T>(loaderContext: T): T | null;
}
declare module 'vue-template-compiler' {
export interface SFCDescriptor {
template?: SFCBlock;
script?: SFCBlock;
styles: SFCBlock[];
customBlocks: SFCCustomBlock[];
}
export interface SFCBlock {
type: string;
content: string;
start: number;
end?: number;
lang?: string;
src?: string;
scoped?: boolean;
module?: string | boolean;
attrs: {
[attribute: string]: string
};
}
export interface SFCCustomBlock {
type: string;
content: string;
start: number;
end?: number;
src?: string;
attrs: {
[attribute: string]: string
};
}
export function parseComponent(content: string, options?: object): SFCDescriptor;
}