Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
23 lines
708 B
Plaintext
23 lines
708 B
Plaintext
//#region src/utils/color.d.ts
|
|
/**
|
|
* @module
|
|
* Color utility.
|
|
*/
|
|
/**
|
|
* Get whether color change on terminal is enabled or disabled.
|
|
* If `NO_COLOR` environment variable is set, this function returns `false`.
|
|
* Unlike getColorEnabledAsync(), this cannot check Cloudflare environment variables.
|
|
* @see {@link https://no-color.org/}
|
|
*
|
|
* @returns {boolean}
|
|
*/
|
|
export declare function getColorEnabled(): boolean;
|
|
/**
|
|
* Get whether color change on terminal is enabled or disabled.
|
|
* If `NO_COLOR` environment variable is set, this function returns `false`.
|
|
* @see {@link https://no-color.org/}
|
|
*
|
|
* @returns {boolean}
|
|
*/
|
|
export declare function getColorEnabledAsync(): Promise<boolean>;
|
|
//#endregion |