Skip to content

Commit

Permalink
fix(compiler-sfc): do not skip TSSatisfiesExpression when transform…
Browse files Browse the repository at this point in the history
…ing props destructure (vuejs#12062)

close vuejs#12061
  • Loading branch information
KazariEX authored and abdullah-wn committed Jan 4, 2025
1 parent 9b09400 commit e302c16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/compiler-sfc/src/script/definePropsDestructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export function transformDestructuredProps(
parent.type.startsWith('TS') &&
parent.type !== 'TSAsExpression' &&
parent.type !== 'TSNonNullExpression' &&
parent.type !== 'TSSatisfiesExpression' &&
parent.type !== 'TSTypeAssertion'
) {
return this.skip()
Expand Down

0 comments on commit e302c16

Please sign in to comment.