Update index.d.ts
This commit is contained in:
parent
bf8a5b290f
commit
a994ae9d4b
1 changed files with 4 additions and 4 deletions
8
source/vendor/supports-color/index.d.ts
vendored
8
source/vendor/supports-color/index.d.ts
vendored
|
|
@ -1,13 +1,13 @@
|
||||||
import type {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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue