File tree 1 file changed +13
-11
lines changed
packages/compiler-sfc/src
1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,18 @@ export interface SFCParseOptions {
20
20
compiler ?: TemplateCompiler
21
21
}
22
22
23
+ export interface SFCDescriptor {
24
+ filename : string
25
+ source : string
26
+ template : SFCTemplateBlock | null
27
+ script : SFCScriptBlock | null
28
+ scriptSetup : SFCScriptBlock | null
29
+ scriptCompiled : SFCScriptBlock | null
30
+ styles : SFCStyleBlock [ ]
31
+ customBlocks : SFCBlock [ ]
32
+ cssVars : string [ ]
33
+ }
34
+
23
35
export interface SFCBlock {
24
36
type : string
25
37
content : string
@@ -49,17 +61,6 @@ export interface SFCStyleBlock extends SFCBlock {
49
61
module ?: string | boolean
50
62
}
51
63
52
- export interface SFCDescriptor {
53
- filename : string
54
- source : string
55
- template : SFCTemplateBlock | null
56
- script : SFCScriptBlock | null
57
- scriptSetup : SFCScriptBlock | null
58
- styles : SFCStyleBlock [ ]
59
- customBlocks : SFCBlock [ ]
60
- cssVars : string [ ]
61
- }
62
-
63
64
export interface SFCParseResult {
64
65
descriptor : SFCDescriptor
65
66
errors : ( CompilerError | SyntaxError ) [ ]
@@ -97,6 +98,7 @@ export function parse(
97
98
template : null ,
98
99
script : null ,
99
100
scriptSetup : null ,
101
+ scriptCompiled : null ,
100
102
styles : [ ] ,
101
103
customBlocks : [ ] ,
102
104
cssVars : [ ]
You can’t perform that action at this time.
0 commit comments