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

Misc fixes #20196

Merged
merged 3 commits into from
May 13, 2024
Merged

Misc fixes #20196

merged 3 commits into from
May 13, 2024

Conversation

daniellockyer
Copy link
Member

No description provided.

- it appears as though we only accept `err` when it's in the constructor
  of the IncorrectUsageError, so in its current form, it is ignored
- this commit performs a minor refactor to switch to constructing a new
  IncorrectUsageError and then throwing it
- detected by tsserver complaining about the `err` property not existing
  on the error
- helps with debugging and understanding the code flow
- nothing crazy, but cleans up a few editor warnings
@daniellockyer daniellockyer merged commit e3fa095 into main May 13, 2024
22 checks passed
@daniellockyer daniellockyer deleted the misc-fixes branch May 13, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant