-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix for TS2742 (workaround) #27
Conversation
## Known limitations and issues | ||
|
||
For known limitations and issues related to TypeScript's current capabilities, | ||
please see the comments in [src/main.d.ts](../src/main.d.ts). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
* See: | ||
* | ||
* - [modern-errors issue #18](https://github.com/ehmicky/modern-errors/issues/18) | ||
* - [TypeScript issue #47663](https://github.com/microsoft/TypeScript/issues/47663) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding those!
Thanks a lot for this PR @jmchambers. |
@all-contributors Could you please add @jmchambers for test, bug? |
I've put up a pull request to add @jmchambers! 🎉 |
No problem, @ehmicky, I'm glad to help! 🚀 |
This fixes #18.
The temporary fix, as discussed in the issue, is to export additional private types. I've grouped all the types being exported for this reason together, at the bottom of src/main.d.ts, and added JSDoc comments in the files where the types are defined, warning that they are private, and won't be exported in the future.
I've tagged the JSDoc comments with
@private
as opposed to@deprecated
, as the latter was very "noisy" in vscode popovers, and@private
is closer to the truth anyway. The comments also link to the relevant issues in this repo and the TypeScript repo. I used markdown links, rather than JSDoc@link
tags, as vscode messes up the formatting of the latter.I have added tests (we are enforcing 100% test coverage).README.md
, thedocs
directory (ifany) and the
examples
directory (if any).seen below.