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

1.1.34 • Public • Published

Installation

npm install --save @types/knockout.viewmodel

Summary

This package contains type definitions for knockout.viewmodel (http://coderenaissance.github.com/knockout.viewmodel/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/knockout.viewmodel.

index.d.ts

/// <reference types="knockout" />

interface KnockoutViewModelStatic {
    toModel(viewmodel: any): any;
    fromModel(model: any, options?: any): any;
    updateFromModel(viewmodel: any, model: any): any;

    // INTERNAL flag: enable logging of conversions
    // logs will be written to console
    logging: boolean;
}

// Extend ko global
interface KnockoutStatic {
    viewmodel: KnockoutViewModelStatic;
}

Additional Details

  • Last updated: Tue, 30 Jan 2024 21:35:45 GMT
  • Dependencies: @types/knockout

Credits

These definitions were written by Oisin Grehan.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/knockout.viewmodel

Weekly Downloads

656

Version

1.1.34

License

MIT

Unpacked Size

3.55 kB

Total Files

5

Last publish

Collaborators

  • types