]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-sfc): do not skip `TSSatisfiesExpression` when transforming props destru...
author山吹色御守 <85992002+KazariEX@users.noreply.github.com>
Sat, 28 Sep 2024 01:56:09 +0000 (09:56 +0800)
committerGitHub <noreply@github.com>
Sat, 28 Sep 2024 01:56:09 +0000 (09:56 +0800)
close #12061

packages/compiler-sfc/src/script/definePropsDestructure.ts

index 341b537d878f472fda8c03467fa127430bd1ddb6..f9a56e32e441978606115ef3ee8487d43eb22a75 100644 (file)
@@ -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()