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

feat: use throw types for better error messages #152

Closed
wants to merge 7 commits into from
Closed

Conversation

mmkal
Copy link
Owner

@mmkal mmkal commented Sep 10, 2020

depends on microsoft/TypeScript#40468

Error messages before:
image

Error messages after:
image

@mmkal mmkal marked this pull request as draft September 12, 2020 22:02
@github-actions
Copy link

@mmkal - changes were pushed to your branch: 8495e58.

@GerkinDev
Copy link
Contributor

This would be really helpful

@ilchenkoArtem
Copy link

@mmkal Hello, that would be great. Can your finish it?

@mmkal
Copy link
Owner Author

mmkal commented May 6, 2022

Nope. microsoft/TypeScript#40468 would have to go into typescript first.

@mmkal
Copy link
Owner Author

mmkal commented Oct 2, 2023

mmkal/expect-type#14

@mmkal mmkal closed this Oct 2, 2023
@mmkal
Copy link
Owner Author

mmkal commented Oct 2, 2023

also if anyone is watching this issue, take a look at mmkal/expect-type#16 which manages to improve error messages to some extent without needing throw types.

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

Successfully merging this pull request may close these issues.

None yet

3 participants