Skip to content

Commit

Permalink
Corrected type definitions. Fixes #56 (#57)
Browse files Browse the repository at this point in the history
* Corrected type definitions. Fixes #56

This PR corrects the TypeScript definitions to properly reflect the fact that Unified exports a CommonJS module rather than an ESM module.

* Replaced incorrect `export default`  syntax with `export =`
* Wrapped all the TypeScript type definitions in a namespace

* removed semicolons

* Removed the "esModuleInterop" setting, which was allowing incorrect type definitions to pass tests

* Corrected the import syntax to use CommonJS imports rather than ESM imports
  • Loading branch information
JamesMessinger authored and ChristianMurphy committed Jul 1, 2019
1 parent 2d41bd2 commit 3f16529
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 202 deletions.
Loading

0 comments on commit 3f16529

Please sign in to comment.