Skip to content

Commit 45b6e69

Browse files
baiwusanyu-csxzz
andauthored
Update packages/compiler-sfc/src/compileScript.ts
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
1 parent 4d161b1 commit 45b6e69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,8 +1895,8 @@ function extractRuntimeProps(
18951895
(m.type === 'TSPropertySignature' || m.type === 'TSMethodSignature') &&
18961896
(m.key.type === 'Identifier' || m.key.type === 'StringLiteral')
18971897
) {
1898-
let type, keyName
1899-
keyName = m.key.type === 'StringLiteral' ? m.key.value : m.key.name
1898+
let type
1899+
const keyName = m.key.type === 'StringLiteral' ? m.key.value : m.key.name
19001900
if (m.type === 'TSMethodSignature') {
19011901
type = ['Function']
19021902
} else if (m.typeAnnotation) {

0 commit comments

Comments
 (0)