Skip to content

Commit e302c16

Browse files
KazariEXabdullah-wn
authored andcommitted
fix(compiler-sfc): do not skip TSSatisfiesExpression when transforming props destructure (vuejs#12062)
close vuejs#12061
1 parent 9b09400 commit e302c16

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)