浏览代码

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