diff --git a/src/api/observe.ts b/src/api/observe.ts index 4cb0bf41b..c3f3d3dc2 100644 --- a/src/api/observe.ts +++ b/src/api/observe.ts @@ -12,7 +12,7 @@ export function observe(observableArray: IObservableArray, listener: (chan export function observe(observableMap: ObservableMap, listener: (change: IMapChange) => void, fireImmediately?: boolean): Lambda; export function observe(observableMap: ObservableMap, property: string, listener: (change: IValueDidChange) => void, fireImmediately?: boolean): Lambda; export function observe(object: Object, listener: (change: IObjectChange) => void, fireImmediately?: boolean): Lambda; -export function observe(object: Object, property: string, listener: (change: IValueDidChange) => void, fireImmediately?: boolean): Lambda; +export function observe(object: T, property: K, listener: (change: IValueDidChange) => void, fireImmediately?: boolean): Lambda; export function observe(thing, propOrCb?, cbOrFire?, fireImmediately?): Lambda { if (typeof cbOrFire === "function") return observeObservableProperty(thing, propOrCb, cbOrFire, fireImmediately);