From 37dee1f614de4d98ec48f7d73faa49a47dad611f Mon Sep 17 00:00:00 2001 From: KazariEX <1364035137@qq.com> Date: Sat, 28 Sep 2024 03:53:37 +0800 Subject: [PATCH] fix(compiler-sfc): not skip `TSSatisfiesExpression` --- packages/compiler-sfc/src/script/definePropsDestructure.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/compiler-sfc/src/script/definePropsDestructure.ts b/packages/compiler-sfc/src/script/definePropsDestructure.ts index 341b537d878..f9a56e32e44 100644 --- a/packages/compiler-sfc/src/script/definePropsDestructure.ts +++ b/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()