can-type

Type definitions

Usage no npm install needed!

<script type="module">
  import canType from 'https://cdn.skypack.dev/can-type';
</script>

README

can-type

Build Status Greenkeeper badge

Type definitions

Usage

ES6 use

With StealJS, you can import this module directly in a template that is autorendered:

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:

var plugin = require("can-type");

Standalone use

Load the global version of the plugin:

<script src='./node_modules/can-type/dist/global/can-type.js'></script>