chbrown / rfc6902

Complete implementation of RFC6902 in TypeScript
https://chbrown.github.io/rfc6902/
322 stars 39 forks source link

ES6 import #13

Closed alexnix closed 8 years ago

alexnix commented 8 years ago

When using ES6 syntax you cannot import this module like: import rfc6902 from 'rfc6902';

instead you have to use: let rfc6902 = require('rfc6902');

alexnix commented 8 years ago

Figured it out... one can use:

import { applyPatch, createPatch } from 'rfc6902';