Skip to content

Commit 2328b05

Browse files
authoredSep 28, 2024··
fix(compiler-sfc): do not skip TSSatisfiesExpression when transforming props destructure (#12062)
close #12061
1 parent 4b09ab2 commit 2328b05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/compiler-sfc/src/script/definePropsDestructure.ts

+1
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ export function transformDestructuredProps(
242242
parent.type.startsWith('TS') &&
243243
parent.type !== 'TSAsExpression' &&
244244
parent.type !== 'TSNonNullExpression' &&
245+
parent.type !== 'TSSatisfiesExpression' &&
245246
parent.type !== 'TSTypeAssertion'
246247
) {
247248
return this.skip()

0 commit comments

Comments
 (0)
Please sign in to comment.