Skip to content

Commit b237a34

Browse files
committed
ideneity
1 parent dfdb39b commit b237a34

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import type { VueCons } from './class'
1919
type SetupFunction<T> = (this: void, props: Readonly<any>, ctx: SetupContext<any>) => T | Promise<T>
2020
export type OptionSetupFunction = SetupFunction<any>
2121
export type ComponentSetupFunction = SetupFunction<Record<string, any>>
22-
function ComponentOption(cons: VueCons, extend?: any) {
22+
function componentOptionFactory(cons: VueCons, extend?: any) {
2323
const optionBuilder: OptionBuilder = {}
2424
optionSetup(cons, optionBuilder)
2525
optionVModel(cons, optionBuilder)
@@ -72,7 +72,7 @@ type ComponentOption = {
7272
}
7373

7474
function buildComponent(cons: VueCons, arg: ComponentOption, extend?: any): any {
75-
const option = ComponentOption(cons, extend)
75+
const option = componentOptionFactory(cons, extend)
7676
const slot = obtainSlot(cons.prototype)
7777
Object.keys(arg).reduce<Record<string, any>>((option, name: string) => {
7878
if (['options', 'modifier', 'methods', 'emits', 'setup', 'provide'].includes(name)) {

src/identity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export type IdentityType = {
88
type AssertIs<O, T extends O> = T
99

1010
export interface Identity<T extends IdentityType = IdentityType> {
11-
[index: string | number | symbol]: any
11+
[index: PropertyKey]: any
1212
[IdentitySymbol]: T
1313
}
1414

0 commit comments

Comments
 (0)