Skip to content

Commit 538027c

Browse files
committed
Meta tweaks
1 parent 80dcce2 commit 538027c

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ declare namespace ansiStyles {
1212
}
1313

1414
interface ColorBase {
15-
ansi256(code: number): string;
16-
17-
ansi16m(red: number, green: number, blue: number): string;
18-
1915
/**
2016
The ANSI terminal control sequence for ending this color.
2117
*/
2218
readonly close: string;
19+
20+
ansi256(code: number): string;
21+
22+
ansi16m(red: number, green: number, blue: number): string;
2323
}
2424

2525
interface Modifier {

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@
4444
"text"
4545
],
4646
"devDependencies": {
47-
"@types/color-convert": "^1.9.0",
48-
"ava": "^2.3.0",
47+
"ava": "^2.4.0",
4948
"svg-term-cli": "^2.1.1",
50-
"tsd": "^0.11.0",
51-
"xo": "^0.25.3"
49+
"tsd": "^0.14.0",
50+
"xo": "^0.37.1"
5251
}
5352
}

test/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import style from '..';
2+
import style from '../index.js';
33

44
test('return ANSI escape codes', t => {
55
t.is(style.green.open, '\u001B[32m');
@@ -20,11 +20,11 @@ test('groups should not be enumerable', t => {
2020
});
2121

2222
test('don\'t pollute other objects', t => {
23-
const obj1 = require('..');
24-
const obj2 = require('..');
23+
const object1 = require('..');
24+
const object2 = require('..');
2525

26-
obj1.foo = true;
27-
t.not(obj1.foo, obj2.foo);
26+
object1.foo = true;
27+
t.not(object1.foo, object2.foo);
2828
});
2929

3030
test('support conversion to ansi (256 colors)', t => {

0 commit comments

Comments
 (0)