File tree 1 file changed +2
-3
lines changed
packages/compiler-core/src
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ export const IS_MEMO_SAME = Symbol(__DEV__ ? `isMemoSame` : ``)
42
42
43
43
// Name mapping for runtime helpers that need to be imported from 'vue' in
44
44
// generated code. Make sure these are correctly exported in the runtime!
45
- // Using `any` here because TS doesn't allow symbols as index type.
46
- export const helperNameMap : any = {
45
+ export const helperNameMap : Record < symbol , string > = {
47
46
[ FRAGMENT ] : `Fragment` ,
48
47
[ TELEPORT ] : `Teleport` ,
49
48
[ SUSPENSE ] : `Suspense` ,
@@ -85,7 +84,7 @@ export const helperNameMap: any = {
85
84
[ IS_MEMO_SAME ] : `isMemoSame`
86
85
}
87
86
88
- export function registerRuntimeHelpers ( helpers : any ) {
87
+ export function registerRuntimeHelpers ( helpers : Record < symbol , string > ) {
89
88
Object . getOwnPropertySymbols ( helpers ) . forEach ( s => {
90
89
helperNameMap [ s ] = helpers [ s ]
91
90
} )
You can’t perform that action at this time.
0 commit comments