File tree 2 files changed +8
-8
lines changed 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -31,19 +31,19 @@ interface ParseOptions {
31
31
}
32
32
33
33
interface SFCDescriptor {
34
- template? : SFCBlock
35
- script? : SFCBlock
34
+ template: SFCBlock | null
35
+ script: SFCBlock | null
36
36
styles: SFCBlock []
37
37
customBlocks: SFCCustomBlock []
38
38
}
39
39
40
40
interface SFCCustomBlock {
41
41
type: string
42
42
content: string
43
- attrs: { [key : string ]: string }
43
+ attrs: { [key : string ]: string | true }
44
44
start: number
45
45
end: number
46
- map: RawSourceMap
46
+ map? : RawSourceMap
47
47
}
48
48
49
49
interface SFCBlock extends SFCCustomBlock {
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ export interface ParseOptions {
23
23
export interface SFCCustomBlock {
24
24
type : string
25
25
content : string
26
- attrs : { [ key : string ] : string }
26
+ attrs : { [ key : string ] : string | true }
27
27
start : number
28
28
end : number
29
- map : RawSourceMap
29
+ map ? : RawSourceMap
30
30
}
31
31
32
32
export interface SFCBlock extends SFCCustomBlock {
@@ -37,8 +37,8 @@ export interface SFCBlock extends SFCCustomBlock {
37
37
}
38
38
39
39
export interface SFCDescriptor {
40
- template ? : SFCBlock
41
- script ? : SFCBlock
40
+ template : SFCBlock | null
41
+ script : SFCBlock | null
42
42
styles : SFCBlock [ ]
43
43
customBlocks : SFCCustomBlock [ ]
44
44
}
You can’t perform that action at this time.
0 commit comments