]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types: use actual type for script block ASTs (#6457)
author三咲智子 Kevin Deng <sxzz@sxzz.moe>
Tue, 8 Nov 2022 02:14:10 +0000 (10:14 +0800)
committerGitHub <noreply@github.com>
Tue, 8 Nov 2022 02:14:10 +0000 (21:14 -0500)
packages/compiler-sfc/src/parse.ts

index cc7873c29a8c9384e3ed3b261e689d8e3fa034aa..5c7d3b8e80e4fbb10e125ec08f5f962e29886dfd 100644 (file)
@@ -44,14 +44,8 @@ export interface SFCScriptBlock extends SFCBlock {
   setup?: string | boolean
   bindings?: BindingMetadata
   imports?: Record<string, ImportBinding>
-  /**
-   * import('\@babel/types').Statement
-   */
-  scriptAst?: any[]
-  /**
-   * import('\@babel/types').Statement
-   */
-  scriptSetupAst?: any[]
+  scriptAst?: import('@babel/types').Statement[]
+  scriptSetupAst?: import('@babel/types').Statement[]
 }
 
 export interface SFCStyleBlock extends SFCBlock {