Skip to content

Conversation

@SynthLuvr
Copy link
Contributor

@SynthLuvr SynthLuvr commented Feb 14, 2025

In this PR I propose hiding the Problem class from public exports because it's prone to easy misuse. There's almost never a good reason to reference this class directly, yet it leads to subtle bugs when developers use x instanceof Problem instead of using isProblem(x).

@SynthLuvr SynthLuvr changed the title Don't export Problem Don't export Problem Feb 14, 2025
@SynthLuvr SynthLuvr merged commit 89c65c4 into main Feb 14, 2025
3 checks passed
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.

2 participants