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 ansi256 and bgAnsi256 to TypeScript declarations #368

Merged
merged 3 commits into from Oct 8, 2019

Conversation

pedrottimark
Copy link
Contributor

When I test bgAnsi256 as visual enhancement, 2.4.2 and 3.0.0-beta.1 have TypeScript errors:

ansi256.ts:3:30 - error TS2339: Property 'bgAnsi256' does not exist on type 'Chalk'.

3 const aColor = chalk.magenta.bgAnsi256(225);
                               ~~~~~~~~~

ansi256.ts:4:28 - error TS2339: Property 'bgAnsi256' does not exist on type 'Chalk'.

4 const bColor = chalk.green.bgAnsi256(194);
  1. Add 2 type tests to index.test-d.ts which failed first
  2. Add 2 declarations to index.d.ts
  3. Add link and example to readme.md
  4. Delete extra space in neighbor line of readme.md

@sindresorhus sindresorhus changed the title Add ansi256 and bgAnsi256 to TypeScript declarations Add ansi256 and bgAnsi256 to TypeScript declarations Oct 8, 2019
@sindresorhus sindresorhus merged commit fb8e85a into chalk:master Oct 8, 2019
@sindresorhus
Copy link
Member

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