Skip to content

Commit

Permalink
Merged #817
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Feb 28, 2018
1 parent 9443b69 commit 9b70833
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/observe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ export function observe(
listener: (change: IObjectChange) => void,
fireImmediately?: boolean
): Lambda
export function observe(
object: Object,
property: string,
listener: (change: IValueDidChange<any>) => void,
export function observe<T, K extends keyof T>(
object: T,
property: K,
listener: (change: IValueDidChange<T[K]>) => void,
fireImmediately?: boolean
): Lambda
export function observe(thing, propOrCb?, cbOrFire?, fireImmediately?): Lambda {
Expand Down

0 comments on commit 9b70833

Please sign in to comment.