https://github.com/canjs/can-type
Create TypeObjects for use in defining ViewModels and Models.
https://github.com/canjs/can-type
Last synced: about 1 year ago
JSON representation
Create TypeObjects for use in defining ViewModels and Models.
- Host: GitHub
- URL: https://github.com/canjs/can-type
- Owner: canjs
- License: mit
- Created: 2019-05-23T15:11:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T17:56:12.000Z (almost 6 years ago)
- Last Synced: 2025-04-15T02:46:37.264Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://canjs.com/doc/can-type.html
- Size: 107 KB
- Stars: 4
- Watchers: 5
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# can-type
[](https://travis-ci.org/DoneJS/can-type) [](https://greenkeeper.io/)
Type definitions
## Usage
### ES6 use
With StealJS, you can import this module directly in a template that is autorendered:
```js
import plugin from 'can-type';
```
### CommonJS use
Use `require` to load `can-type` and everything else
needed to create a template that uses `can-type`:
```js
var plugin = require("can-type");
```
### Standalone use
Load the `global` version of the plugin:
```html
```