@types/knockout.editables
TypeScript icon, indicating that this package has built-in type declarations

0.9.34 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i @types/knockout.editables

Weekly Downloads

1

Version

0.9.34

License

MIT

Unpacked Size

4.05 kB

Total Files

5

Last publish

Collaborators

  • types