diff --git a/README.md b/README.md index 59104d4d5..3bdc14e4e 100755 --- a/README.md +++ b/README.md @@ -137,6 +137,7 @@ List of Definitions * [Knockout.js](http://knockoutjs.com/) (by [Boris Yankov](https://github.com/borisyankov)) * [Knockout.DeferredUpdates](https://github.com/mbest/knockout-deferred-updates) (by [Sebastián Galiano](https://github.com/sgaliano)) * [Knockout.ES5](https://github.com/SteveSanderson/knockout-es5) (by [Sebastián Galiano](https://github.com/sgaliano)) +* [Knockout.Mapper](https://github.com/LucasLorentz/knockout.mapper) (by [Brandon Meyer](https://github.com/BMeyerKC)) * [Knockout.Mapping](https://github.com/SteveSanderson/knockout.mapping) (by [Boris Yankov](https://github.com/borisyankov)) * [Knockout.Postbox](https://github.com/rniemeyer/knockout-postbox) (by [Judah Gabriel](https://github.com/JudahGabriel)) * [Knockout.Validation](https://github.com/ericmbarnard/Knockout-Validation) (by [Dan Ludwig](https://github.com/danludwig)) diff --git a/knockout.mapper/knockout.mapper.d.ts b/knockout.mapper/knockout.mapper.d.ts new file mode 100644 index 000000000..8052e4cc7 --- /dev/null +++ b/knockout.mapper/knockout.mapper.d.ts @@ -0,0 +1,15 @@ +// Type definitions for Knockout.Mapper +// Project: https://github.com/LucasLorentz/knockout.mapper +// Definitions by: Brandon Meyer +// Definitions https://github.com/borisyankov/DefinitelyTyped + +/// + +interface KnockoutMapper { + fromJS(value: any, options?: any, target?: any, wrap?: boolean): any; + toJS(value: any, options?: any): any; +} + +interface KnockoutStatic { + mapper: KnockoutMapper; +} \ No newline at end of file