npm.io
0.9.34 • Published 2 years ago

@types/knockout.editables

Licence
MIT
Version
0.9.34
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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

Credits

These definitions were written by Boris Yankov.