2
0
Эх сурвалжийг харах

fix(compiler-sfc): do not skip `TSSatisfiesExpression` when transforming props destructure (#12062)

close #12061
山吹色御守 1 жил өмнө
parent
commit
2328b051f4

+ 1 - 0
packages/compiler-sfc/src/script/definePropsDestructure.ts

@@ -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()