Skip to content

feat: use throw types for better error messages#152

Closed
mmkal wants to merge 7 commits into
mainfrom
throw-types
Closed

feat: use throw types for better error messages#152
mmkal wants to merge 7 commits into
mainfrom
throw-types

Conversation

@mmkal

@mmkal mmkal commented Sep 10, 2020

Copy link
Copy Markdown
Owner

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
Copy Markdown

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

@GerkinDev

Copy link
Copy Markdown
Contributor

This would be really helpful

@ilchenkoArtem

Copy link
Copy Markdown

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

@mmkal

mmkal commented May 6, 2022

Copy link
Copy Markdown
Owner Author

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

@mmkal

mmkal commented Oct 2, 2023

Copy link
Copy Markdown
Owner Author

mmkal/expect-type#14

@mmkal mmkal closed this Oct 2, 2023
@mmkal

mmkal commented Oct 2, 2023

Copy link
Copy Markdown
Owner Author

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.

3 participants