Skip to content

Commit b548026

Browse files
committed
types: object key can be number type
1 parent 396de8a commit b548026

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/install.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import type { App, Component } from 'vue-demi'
33
import component from './component'
44
import type { Mode } from './component'
55

6-
const globalProps: Record<string | symbol, any> = {}
7-
const globalAttrs: Record<string | symbol, any> = {}
6+
const globalProps: Record<keyof any, any> = {}
7+
const globalAttrs: Record<keyof any, any> = {}
88

99
type SFCWithInstall = Component & {
10-
install: (app: App, options?: Record<string | symbol, any>) => void
10+
install: (app: App, options?: Record<keyof any, any>) => void
1111
}
1212

1313
function withInstall(sfc: Component): SFCWithInstall {

0 commit comments

Comments
 (0)