UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

21 lines (17 loc) 689 B
// Type definitions for Knockout Viewmodel 1.1.3 // Project: http://coderenaissance.github.com/knockout.viewmodel/ // Definitions by: Oisin Grehan <https://github.com/oising> // Definitions: https://github.com/borisyankov/DefinitelyTyped /// <reference path="../knockout/knockout.d.ts" /> interface KnockoutViewModelStatic { toModel(viewmodel: any): any; fromModel(model: any, options?: any): any; updateFromModel(viewmodel: any, model: any); // INTERNAL flag: enable logging of conversions // logs will be written to console logging: boolean; } // Extend ko global interface KnockoutStatic { viewmodel: KnockoutViewModelStatic; }