Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Typescript import #101

Open
seangenabe opened this issue Nov 19, 2017 · 1 comment
Open

Document Typescript import #101

seangenabe opened this issue Nov 19, 2017 · 1 comment

Comments

@seangenabe
Copy link

Some people would expect CommonJS-style import bel = require('bel') to work, but alas, it doesn't, although the compiled code still works. The way the definition file is set up the only way to import the module without errors is via import bel from 'bel' which seems counter-intuitive.

Can we document import bel from 'bel'? Or add an export = line to make import bel = require('bel') work?

@goto-bus-stop
Copy link
Member

Or add an export = line to make import bel = require('bel') work?

This sound like the best approach to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants