Update index.d.ts

This commit is contained in:
idanran 2022-12-07 22:12:19 +08:00
parent e370d01285
commit caece8bea9
No known key found for this signature in database
GPG key ID: 6AAA420F30EBA960

View file

@ -1,13 +1,13 @@
import {WriteStream} from 'node:tty'; import type {WriteStream} from 'node:tty';
export interface Options { export type Options = {
/** /**
Whether `process.argv` should be sniffed for `--color` and `--no-color` flags. Whether `process.argv` should be sniffed for `--color` and `--no-color` flags.
@default true @default true
*/ */
readonly sniffFlags?: boolean; readonly sniffFlags?: boolean;
} };
/** /**
Levels: Levels:
@ -21,7 +21,7 @@ export type ColorSupportLevel = 0 | 1 | 2 | 3;
/** /**
Detect whether the terminal supports color. Detect whether the terminal supports color.
*/ */
export interface ColorSupport { export type ColorSupport = {
/** /**
The color level. The color level.
*/ */
@ -41,7 +41,7 @@ export interface ColorSupport {
Whether Truecolor 16 million colors are supported. Whether Truecolor 16 million colors are supported.
*/ */
has16m: boolean; has16m: boolean;
} };
export type ColorInfo = ColorSupport | false; export type ColorInfo = ColorSupport | false;