Commit graph

255 commits

Author SHA1 Message Date
Sindre Sorhus
39b40ba4f4
Update index.d.ts 2018-12-26 01:57:05 +01:00
Sindre Sorhus
575d73d913
Update index.test-d.ts 2018-12-26 01:55:44 +01:00
Sindre Sorhus
aaf4a9bc65
Update index.test-d.ts 2018-12-26 01:55:18 +01:00
George Gkasdrogkas
8f91dc42b0
Document strikethrough in TS definition file 2018-12-02 12:18:47 +02:00
George Gkasdrogkas
ea40429080
Change table to list view in Modifiers section 2018-12-02 12:17:17 +02:00
George Gkasdrogkas
dea3c2d5b7
Update Modifiers section to match the new TS definitions 2018-10-28 10:46:22 +02:00
George Gkasdrogkas
0ac6f47334
Merge branch 'update-ts-files' of github.com:GeorgeGkas/chalk into update-ts-files 2018-10-28 10:36:01 +02:00
George Gkasdrogkas
2f54ab25d4
Update TS definitions for strikethrough, hidden, visible modifiers 2018-10-28 10:34:17 +02:00
Sindre Sorhus
d891265fbe
Update index.test-d.ts 2018-10-28 13:32:35 +07:00
George Gkasdrogkas
840483a750
Update TS types in definition file
Use the full words for parameters in color methods, not just
`r` and `g`. This make our definitions more self-documented and
allow us to remove @param from comments. This commit also fix
other minor issues.
2018-09-18 14:57:39 +03:00
George Gkasdrogkas
a489365c4f
Update types key in package.json to point to new TS definition file 2018-09-18 14:52:17 +03:00
George Gkasdrogkas
0f31446555
Resolve xo rule errors 2018-09-18 14:48:05 +03:00
George Gkasdrogkas
8577e6dd58
[#293] Add documentation comments and tests for TS Definitions
Notable changes:
- Move index.d.ts from types/ to project root (needed for
  tsd-check module).
- Rename test.ts to index.test-d.ts and place it under root
  (needed for tsd-check module).
- Add tsd-check module to test Typescript Definitions.

Future Work:
The properties inverse, hidden, strikethrough and visible
of Chalk interface in index.d.ts needs to be documented.
2018-09-18 14:35:30 +03:00
Chris Harwood
6a14c58e54 Add failing test for #234 (#235) 2018-09-18 15:48:47 +07:00
Sindre Sorhus
2a678789b1 Validate the level option
Fixes #248
2018-09-18 15:33:20 +07:00
Sindre Sorhus
0307f263cb Require Node.js 6 2018-09-18 14:32:14 +07:00
Sindre Sorhus
70f22d87ba Tiny travis.yml tweak 2018-09-01 02:50:53 +07:00
Sindre Sorhus
a2b5fa22dc
Add some badges to the readme 2018-08-06 15:53:00 +07:00
Sindre Sorhus
a6ad945452 Fix XO linting and update some dev dependencies
Fixes #275
2018-05-28 09:16:44 +07:00
Sindre Sorhus
48ba5b0b9b 2.4.1 2018-04-26 12:15:49 +07:00
Jamie
01cfb5c888 Improve Flow type definition for CommonJS interop (#268) 2018-04-26 12:14:22 +07:00
Sindre Sorhus
fc9a7e369b GitHub now natively supports SVG 2018-04-20 13:42:59 +07:00
Sindre Sorhus
af8b3657e9 2.4.0 2018-04-17 11:28:35 +07:00
Saad Quadri
7c6f83f719 Add Flow type definitions (#260) 2018-04-17 11:26:17 +07:00
Sindre Sorhus
58483b5ab1 Add a related package to the readme 2018-04-05 00:43:46 +07:00
Sindre Sorhus
0dae4c28e1
Add Patreon badge 2018-04-02 14:35:53 +07:00
Sindre Sorhus
84f27d4bd8 2.3.2 2018-03-03 00:43:48 +07:00
Sindre Sorhus
245dfa5c6f Bump dependencies
Closes #255
Fixes #254
Fixes #224
2018-03-03 00:42:56 +07:00
Josh Junon
e80f02e2dd Disable unicorn/no-hex-escape for template tests 2018-02-14 18:30:52 -08:00
Josh Junon
925397a0f5 Disable unicorn/no-unsafe-regex for template parser 2018-02-14 18:30:50 -08:00
Josh Junon
52823001a5 Revert "Fix linting"
This reverts commit 12d1276b36.
2018-02-14 18:28:22 -08:00
Sindre Sorhus
12d1276b36 Fix linting 2018-02-15 00:41:45 +07:00
Sindre Sorhus
576d8d2171 Update URL to XO 2018-02-15 00:15:28 +07:00
Sindre Sorhus
ae8a03f2c5 2.3.1 2018-02-11 20:18:25 +07:00
Sindre Sorhus
b55dd79f8b Force bump dependencies
npm is buggy, so doing this just to be sure.
2018-02-11 20:04:55 +07:00
Kayla Washburn
678152cf19 Update chalk to use the latest updates to supports-color (#247) 2018-02-11 16:59:24 +07:00
Aman Pratap Singh
011dd0421e Fix usage example in the readme (#251) 2018-02-11 16:03:50 +07:00
Mario Nebl
6554030550 Use svg screenshot 2018-01-29 07:20:23 -08:00
Samarth Verma
bc3dd75329 Update usage stats in the readme (#242) 2017-12-31 16:20:49 +01:00
Brandon Smith
a8c60e37fa Fix spelling error in readme (#232) 2017-12-09 11:20:28 +01:00
Andrew
5392313414 Correct HSV and HWB examples 2017-10-25 23:33:12 -07:00
Sindre Sorhus
14e0aa9772 2.3.0 2017-10-24 11:12:53 +07:00
calebboyd
7be154c074 TypeScript fixes (#217) 2017-10-24 11:02:36 +07:00
Josh Junon
e1177ec362 2.2.2 2017-10-23 20:15:51 -07:00
Josh Junon
e2a4aa4275 fix .visible when called after .enable is set to false 2017-10-23 20:12:34 -07:00
Josh Junon
ede310303b add failing test for .visible bug 2017-10-23 20:12:16 -07:00
Josh Junon
6adf5794a3 2.2.1 2017-10-23 19:46:10 -07:00
Danny Kirchmeier
dc092b4a5f Add .visible for emitting text only when enabled (fixes #192) 2017-10-23 19:44:46 -07:00
Sindre Sorhus
4372d27f7e Add Awesome mentioned badge 2017-10-22 15:20:23 +07:00
Sindre Sorhus
d86db88e77 2.2.0 2017-10-18 10:15:39 +07:00