Преглед изворни кода

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

close #12061
山吹色御守 пре 1 година
родитељ
комит
2328b051f4
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      packages/compiler-sfc/src/script/definePropsDestructure.ts

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