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 (#12062)

close #12061
  • Loading branch information
KazariEX authored Sep 28, 2024
1 parent 4b09ab2 commit 2328b05
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 2328b05

Please sign in to comment.