choojs / choojs/nanohtml

Document Typescript import

Open
#101 1 comment 1 reaction 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
688
Forks
48
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.