Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(types): use export = and declares (#1695)
* fix(types): use export = and declares Fixes: #1694 From my testing, I haven't been able to find any negatives with using `export =` and `declare` vs direct export when using TS 3+. Going this route allows for consumers still using TS2 and/or not using `esModuleInterop` to still utilize the bundled types. Closes: #1684 I don't think the casing of the exported object makes a difference either way, but using lowercase seems to fit with common usage (as a function) better.
- Loading branch information
1 parent
d86245f
commit 65a8a6a
Showing
2 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters