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

close #12061
This commit is contained in:
山吹色御守 2024-09-28 09:56:09 +08:00 committed by GitHub
parent 4b09ab2074
commit 2328b051f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

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