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

Change type guard for whitespace from string to ' ' #207

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

marlun78
Copy link
Contributor

New Whitespace type was added if we need to change the type later, currently it's set to just a space character ' '.

The test may look a bit odd, but I'm not sure how to test this otherwise, suggestions? TSC/ESLint will start to complain about the method call (charAt) if something breaks.

Closes #206.

@sindresorhus sindresorhus merged commit 25a3768 into sindresorhus:main Jun 26, 2024
1 check 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.

Typing errors with the isEmptyStringOrWhitespace type guard
2 participants