-
Notifications
You must be signed in to change notification settings - Fork 4
Home
NativeModels provides a way to map objects in a clean and typed way. The main goal is to ensure runtime type checking and consistent models for APIs.
Inspiration from http://objectmodel.js.org/ and https://www.npmjs.com/package/prop-types
The main goal of this project is to allow developers to write native javascript without require transpilation while still maintaining strict data types for objects. Unlike Flow or Typescript, NativeModels doesn't require you to transpile or run checks to ensure types. You can write standard, vanilla javascript and still benefit from strong types. While there is no compilation checks that will fix mistakes before you run your code, you will have runtime checking to ensure that your data is correctly typed and defined.