Skip to content

Commit 97aadd8

Browse files
authored
types: use actual type for script block ASTs (#6457)
1 parent e9172db commit 97aadd8

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/compiler-sfc/src/parse.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,8 @@ export interface SFCScriptBlock extends SFCBlock {
4444
setup?: string | boolean
4545
bindings?: BindingMetadata
4646
imports?: Record<string, ImportBinding>
47-
/**
48-
* import('\@babel/types').Statement
49-
*/
50-
scriptAst?: any[]
51-
/**
52-
* import('\@babel/types').Statement
53-
*/
54-
scriptSetupAst?: any[]
47+
scriptAst?: import('@babel/types').Statement[]
48+
scriptSetupAst?: import('@babel/types').Statement[]
5549
}
5650

5751
export interface SFCStyleBlock extends SFCBlock {

0 commit comments

Comments
 (0)