From 6a57e34602bdef5bc7c8623ef1e56025f18153ff Mon Sep 17 00:00:00 2001 From: Brandon Meyer Date: Mon, 30 Sep 2013 23:55:47 -0500 Subject: [PATCH] Knockout.Mapper Basic Definitions --- README.md | 1 + knockout.mapper/knockout.mapper.d.ts | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 knockout.mapper/knockout.mapper.d.ts 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