We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d161b1 commit 45b6e69Copy full SHA for 45b6e69
packages/compiler-sfc/src/compileScript.ts
@@ -1895,8 +1895,8 @@ function extractRuntimeProps(
1895
(m.type === 'TSPropertySignature' || m.type === 'TSMethodSignature') &&
1896
(m.key.type === 'Identifier' || m.key.type === 'StringLiteral')
1897
) {
1898
- let type, keyName
1899
- keyName = m.key.type === 'StringLiteral' ? m.key.value : m.key.name
+ let type
+ const keyName = m.key.type === 'StringLiteral' ? m.key.value : m.key.name
1900
if (m.type === 'TSMethodSignature') {
1901
type = ['Function']
1902
} else if (m.typeAnnotation) {
0 commit comments