Knockout.Mapper Basic Definitions

This commit is contained in:
Brandon Meyer
2013-09-30 23:55:47 -05:00
parent 741fb5cd6e
commit 6a57e34602
2 changed files with 16 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
// Type definitions for Knockout.Mapper
// Project: https://github.com/LucasLorentz/knockout.mapper
// Definitions by: Brandon Meyer <https://github.com/BMeyerKC>
// Definitions https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../knockout/knockout.d.ts" />
interface KnockoutMapper {
fromJS(value: any, options?: any, target?: any, wrap?: boolean): any;
toJS(value: any, options?: any): any;
}
interface KnockoutStatic {
mapper: KnockoutMapper;
}