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

This commit is contained in:
三咲智子 Kevin Deng 2022-11-08 10:14:10 +08:00 committed by GitHub
parent e9172db68b
commit 97aadd8290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -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>
/** scriptAst?: import('@babel/types').Statement[]
* import('\@babel/types').Statement scriptSetupAst?: import('@babel/types').Statement[]
*/
scriptAst?: any[]
/**
* import('\@babel/types').Statement
*/
scriptSetupAst?: any[]
} }
export interface SFCStyleBlock extends SFCBlock { export interface SFCStyleBlock extends SFCBlock {