Browse Source

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

close #12061
山吹色御守 1 year ago
parent
commit
2328b051f4
1 changed files with 1 additions and 0 deletions
  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.startsWith('TS') &&
         parent.type !== 'TSAsExpression' &&
         parent.type !== 'TSAsExpression' &&
         parent.type !== 'TSNonNullExpression' &&
         parent.type !== 'TSNonNullExpression' &&
+        parent.type !== 'TSSatisfiesExpression' &&
         parent.type !== 'TSTypeAssertion'
         parent.type !== 'TSTypeAssertion'
       ) {
       ) {
         return this.skip()
         return this.skip()