We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8d4b0e3 + c4441bf commit 3d47b59Copy full SHA for 3d47b59
src/api/intercept.ts
@@ -24,9 +24,9 @@ export function intercept<T>(
24
handler: IInterceptor<IValueWillChange<T>>
25
): Lambda
26
export function intercept(object: Object, handler: IInterceptor<IObjectWillChange>): Lambda
27
-export function intercept(
28
- object: Object,
29
- property: string,
+export function intercept<T extends Object, K extends keyof T>(
+ object: T,
+ property: K,
30
handler: IInterceptor<IValueWillChange<any>>
31
32
export function intercept(thing, propOrHandler?, handler?): Lambda {
0 commit comments