Explorar o código

types: use actual type for script block ASTs (#6457)

三咲智子 Kevin Deng %!s(int64=3) %!d(string=hai) anos
pai
achega
97aadd8290
Modificáronse 1 ficheiros con 2 adicións e 8 borrados
  1. 2 8
      packages/compiler-sfc/src/parse.ts

+ 2 - 8
packages/compiler-sfc/src/parse.ts

@@ -44,14 +44,8 @@ export interface SFCScriptBlock extends SFCBlock {
   setup?: string | boolean
   setup?: string | boolean
   bindings?: BindingMetadata
   bindings?: BindingMetadata
   imports?: Record<string, ImportBinding>
   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 {
 export interface SFCStyleBlock extends SFCBlock {