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

Disallow template literals on colors and modifiers in the TypeScript types #380

Closed
wants to merge 1 commit into from

Conversation

sexwithsatan
Copy link

@sexwithsatan sexwithsatan commented Dec 22, 2019

Fixes #341

@sexwithsatan
Copy link
Author

Any feedback on this? PR was submitted over 3 weeks ago

@sindresorhus sindresorhus changed the title Disallow template literals on colors and modifiers (#341) Disallow template literals on colors and modifiers Feb 2, 2020
@sindresorhus sindresorhus changed the title Disallow template literals on colors and modifiers Disallow template literals on colors and modifiers in the TypeScript types Feb 2, 2020
@sindresorhus
Copy link
Member

@ExE-Boss Can you help review?

@ExE-Boss
Copy link
Contributor

ExE-Boss commented Feb 2, 2020

This won’t fix #341, this just makes the TypeScript type definition mark attempting it as an error until #341 is implemented.

@@ -398,7 +411,7 @@ Call the last one as a method with a string argument.
Order doesn't matter, and later styles take precedent in case of a conflict.
This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`.
*/
declare const chalk: chalk.Chalk & chalk.ChalkFunction & {
declare const chalk: chalk.Chalk & chalk.ChalkFunction & chalk.ChalkTemplateFunction & {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't & chalk.ChalkFunction & chalk.ChalkTemplateFunction moot here as chalk.Chalk already extend those?

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.

Template literals are unsupported for nested calls
3 participants