We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee88ebc commit 2b1f237Copy full SHA for 2b1f237
index.d.ts
@@ -45,7 +45,7 @@ export interface ColorSupport {
45
46
export type ColorInfo = ColorSupport | false;
47
48
-export function createSupportsColor(stream: WriteStream, options?: Options): ColorInfo;
+export function createSupportsColor(stream?: WriteStream, options?: Options): ColorInfo;
49
50
declare const supportsColor: {
51
stdout: ColorInfo;
index.test-d.ts
@@ -9,5 +9,6 @@ expectType<ColorInfo>(supportsColor.stderr);
9
10
expectType<ColorInfo>(createSupportsColor(stdout));
11
expectType<ColorInfo>(createSupportsColor(stderr));
12
+expectType<ColorInfo>(createSupportsColor(undefined));
13
14
expectType<ColorInfo>(createSupportsColor(stdout, options));
0 commit comments