DirtyFlag does not have methods - the object only has a default function, which returns a result. This result also has another function forceDirty() that is not included.

This commit is contained in:
Ryan Posener
2017-11-19 10:46:52 -07:00
parent 35272568c9
commit 9ea6b34ae8
+6 -1
View File
@@ -10,9 +10,14 @@
// DirtyFlag /////////////////////////////////////////////
interface DirtyFlag {
isDirty: KnockoutComputed<boolean>;
new (objectToTrack: any, isInitiallyDirty?: boolean, hashFunction?: () => any): any;
(): DirtyFlagResult;
}
interface DirtyFlagResult {
isDirty: KnockoutComputed<boolean>;
reset(): void;
forceDirty(): void;
}
interface KnockoutStatic {