An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# can-type

[![Build Status](https://travis-ci.org/DoneJS/can-type.svg?branch=master)](https://travis-ci.org/DoneJS/can-type) [![Greenkeeper badge](https://badges.greenkeeper.io/canjs/can-type.svg)](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

```