Update index.d.ts

This commit is contained in:
Sindre Sorhus 2023-06-29 12:43:25 +02:00 committed by GitHub
parent bf8a5b290f
commit a994ae9d4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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