mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
30 lines
776 B
TypeScript
30 lines
776 B
TypeScript
/// <reference path="../knockout/knockout.d.ts" />
|
|
|
|
// build: ko.editables 0.9
|
|
// http://romanych.github.com/ko.editables/
|
|
|
|
// bestowed by ko.editable(target)
|
|
interface KnockoutEditable {
|
|
addEditable(target: any): any;
|
|
beginEdit(): void;
|
|
commit(): void;
|
|
rollback(): void;
|
|
hasChanges(): boolean;
|
|
}
|
|
|
|
interface KnockoutEditableStatic {
|
|
(viewModel: any, autoInit?: boolean): void;
|
|
beginEdit(scope: string): void;
|
|
commit(scope: string): void;
|
|
rollback(scope: string): void;
|
|
hasChanges(scope: string): boolean;
|
|
|
|
// INTERNAL
|
|
//getHasChangesFlag(scope: string): any;
|
|
//enable(object: any, scope: string); void;
|
|
}
|
|
|
|
// extend ko global
|
|
interface KnockoutStatic {
|
|
editable: KnockoutEditableStatic;
|
|
} |