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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

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
1 participant