Commit graph

23 commits

Author SHA1 Message Date
Richie Bendall
d798222a5a
Add named exports (#432) 2021-04-17 19:33:03 +07:00
Sindre Sorhus
fa16f4ec37 Require Node.js 12 and move to ESM 2021-04-16 16:22:53 +07:00
Sindre Sorhus
2a9abb18f4 Rename master branch to main 2021-01-24 14:27:41 +07:00
Richie Bendall
c0d8e7ed8a
Update test dependencies (#414) 2020-10-03 23:56:24 +02:00
Toon Baeyens
09ddbadcb5
Support template literals for nested calls (#392)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2020-06-09 15:36:34 +08:00
Sindre Sorhus
61999a4e77 Require Node.js 10 2020-04-02 16:10:07 +08:00
Sindre Sorhus
f0f4638a92 Change the TypeScript Level type to be a union instead of enum
Fixes #373
Fixes #382
2020-04-02 15:51:17 +08:00
Mark Pedrotti
18c280da2e Add ansi and bgAnsi to TypeScript declaration (#369) 2019-11-09 11:22:55 +05:00
Mark Pedrotti
fb8e85ab87 Add ansi256 and bgAnsi256 to TypeScript declarations (#368) 2019-10-08 16:02:34 +07:00
Yanis Benson
2a53389d72 Add chalk.stderr (#359) 2019-09-22 16:07:33 +07:00
Simen Bekkhus
6b4d20683f Export TypeScript types for colors and modifiers (#357)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2019-08-22 15:28:25 +02:00
Qix
1f77953f1a Remove the .enabled property in favor of .level (#356) 2019-07-13 12:45:31 +07:00
Sindre Sorhus
c25c32a25f Update dependencies 2019-07-12 14:13:58 +07:00
Sindre Sorhus
655653bb0c Meta tweaks 2019-07-12 14:13:02 +07:00
Florian Reuschel
d82b2a6638 Add missing false type to chalk.supportsColor (#347) 2019-06-11 00:47:16 +07:00
ExE Boss
b3e9b91405 Fix TypeScript types for supportsColor which is top‑level only (#342)
Co-Authored-By: Dimitri Benin <BendingBender@users.noreply.github.com>
2019-05-11 15:04:20 +07:00
Dimitri Benin
98628d9f08 Use CommonJS-compatible export in TypeScript definition (#344) 2019-04-28 11:10:44 +07:00
Sindre Sorhus
3ef170b457 Require Node.js 8 2019-03-12 20:15:36 +07:00
Tom Sherman
de2f4cd606 Deprecate chalk.constructor() in favor of new chalk.Instance() (#322) 2019-03-12 19:53:03 +07:00
Jonathan Van Buren
7f6e5630b0 Change tagged template literal argument type to accept unknown instead of just string (#316) 2018-12-28 12:13:56 +01:00
Sindre Sorhus
1284415013 Enforce chalk.constructor to be called with new in TypeScript 2018-12-26 02:27:57 +01:00
Sindre Sorhus
cf6615647a Type definition improvements 2018-12-26 02:27:02 +01:00
George Gkasdrogkas
90c7a92ff1 Add docs comments and tests for TypeScript definitions (#299)
Fixes #293
2018-12-26 02:06:00 +01:00