We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a0b463 commit 70f2f28Copy full SHA for 70f2f28
packages/runtime-core/src/compat/instance.ts
@@ -43,8 +43,15 @@ export type LegacyPublicInstance = ComponentPublicInstance &
43
LegacyPublicProperties
44
45
export interface LegacyPublicProperties {
46
- $set(target: object, key: string, value: any): void
47
- $delete(target: object, key: string): void
+ $set<T extends Record<keyof any, any>, K extends keyof T>(
+ target: T,
48
+ key: K,
49
+ value: T[K]
50
+ ): void
51
+ $delete<T extends Record<keyof any, any>, K extends keyof T>(
52
53
+ key: K
54
55
$mount(el?: string | Element): this
56
$destroy(): void
57
$scopedSlots: Slots
0 commit comments