mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
add ko es5 methods. (#11369)
* add ko es5 methods. * Specify return type
This commit is contained in:
committed by
Masahiro Wakame
parent
ad537776db
commit
31615b47bb
7
knockout.es5/knockout.es5.d.ts
vendored
7
knockout.es5/knockout.es5.d.ts
vendored
@@ -12,6 +12,13 @@ interface KnockoutStatic {
|
||||
defineProperty<T>(obj: T, propertyName: string, options: KnockoutDefinePropertyOptions): T;
|
||||
getObservable(obj: any, propertyName: string): KnockoutObservable<any>;
|
||||
valueHasMutated(obj: any, propertyName: string): void;
|
||||
es5: KnockoutEs5;
|
||||
}
|
||||
|
||||
interface KnockoutEs5 {
|
||||
getAllObservablesForObject<T>(obj: T, createIfNotDefined?: boolean): T;
|
||||
notifyWhenPresentOrFutureArrayValuesMutate<T>(ko: KnockoutStatic, observable: KnockoutObservable<T>): void;
|
||||
isTracked<T>(obj: T, propertyName: string): boolean;
|
||||
}
|
||||
|
||||
interface KnockoutDefinePropertyOptions {
|
||||
|
||||
Reference in New Issue
Block a user