Installation
npm install --save @types/knockout.editables
Summary
This package contains type definitions for knockout.editables (http://romanych.github.com/ko.editables/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/knockout.editables.
index.d.ts
/// <reference types="knockout" />
// 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;
}
Additional Details
- Last updated: Tue, 30 Jan 2024 21:35:45 GMT
- Dependencies: @types/knockout
Credits
These definitions were written by Boris Yankov.