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

Add missing false type to chalk.supportsColor #347

Merged
merged 1 commit into from Jun 10, 2019
Merged

Add missing false type to chalk.supportsColor #347

merged 1 commit into from Jun 10, 2019

Conversation

loilo
Copy link
Contributor

@loilo loilo commented Jun 4, 2019

chalk.supportsColor is not obliged to return a chalk.ColorSupport object but may as well return false which is not currently reflected in the type definitions.

This PR fixes that, adds a fitting test and adjusts existing tests accordingly.

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

3 participants