Skip to content

Commit

Permalink
types: use actual type for script block ASTs (vuejs#6457)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored and chrislone committed Feb 4, 2023
1 parent 811390b commit 35ab1c3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/compiler-sfc/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 35ab1c3

Please sign in to comment.