Skip to content

Commit

Permalink
typings: add util.styleText type definition
Browse files Browse the repository at this point in the history
PR-URL: #54252
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
  • Loading branch information
RafaelGSS authored and targos committed Oct 2, 2024
1 parent 4c219b0 commit 628ae4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions typings/internalBinding/util.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 628ae4b

Please sign in to comment.