Skip to content

Commit

Permalink
types: object key can be number type
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Mar 5, 2023
1 parent 396de8a commit b548026
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import type { App, Component } from 'vue-demi'
import component from './component'
import type { Mode } from './component'

const globalProps: Record<string | symbol, any> = {}
const globalAttrs: Record<string | symbol, any> = {}
const globalProps: Record<keyof any, any> = {}
const globalAttrs: Record<keyof any, any> = {}

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

function withInstall(sfc: Component): SFCWithInstall {
Expand Down

0 comments on commit b548026

Please sign in to comment.