mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
31 lines
755 B
TypeScript
31 lines
755 B
TypeScript
// Type definitions for KoLite 1.1
|
|
// Project: https://github.com/CodeSeven/kolite
|
|
// Definitions by: Boris Yankov <https://github.com/borisyankov>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
/// <reference types="jquery" />
|
|
/// <reference types="knockout" />
|
|
|
|
// DirtyFlag /////////////////////////////////////////////
|
|
|
|
interface DirtyFlag {
|
|
isDirty: KnockoutComputed<boolean>;
|
|
new (objectToTrack: any, isInitiallyDirty?: boolean, hashFunction?: () => any): any;
|
|
reset(): void;
|
|
}
|
|
|
|
interface KnockoutStatic {
|
|
DirtyFlag: DirtyFlag;
|
|
}
|
|
|
|
interface KnockoutDirtyFlagStatic {
|
|
DirtyFlag: DirtyFlag;
|
|
}
|
|
|
|
// AMD
|
|
declare var kodirtyflag: KnockoutDirtyFlagStatic;
|
|
declare module 'kodirtyflag'{
|
|
export = kodirtyflag;
|
|
}
|