typings: add util.styleText type definition

PR-URL: https://github.com/nodejs/node/pull/54252
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
Rafael Gonzaga authored and Michaël Zasso committed 2024-10-02 07:57:31 +02:00
1 parent 4c219b0235
commit 628ae4bde5
1 file changed
+1
+1
View File
@@ -44,4 +44,5 @@ export interface UtilBinding {
WeakReference: typeof InternalUtilBinding.WeakReference;
guessHandleType(fd: number): 'TCP' | 'TTY' | 'UDP' | 'FILE' | 'PIPE' | 'UNKNOWN';
parseEnv(content: string): Record<string, string>;
styleText(format: Array<string> | string, text: string): string;
}