From: 山吹色御守 <85992002+KazariEX@users.noreply.github.com> Date: Sat, 28 Sep 2024 01:56:09 +0000 (+0800) Subject: fix(compiler-sfc): do not skip `TSSatisfiesExpression` when transforming props destru... X-Git-Tag: v3.5.11~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2328b051f4efa1f1394b7d4e73b7c3f76e430e7c;p=thirdparty%2Fvuejs%2Fcore.git fix(compiler-sfc): do not skip `TSSatisfiesExpression` when transforming props destructure (#12062) close #12061 --- diff --git a/packages/compiler-sfc/src/script/definePropsDestructure.ts b/packages/compiler-sfc/src/script/definePropsDestructure.ts index 341b537d87..f9a56e32e4 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()