| | |
| | | * ```js |
| | | * const util = require('util'); |
| | | * ``` |
| | | * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/util.js) |
| | | * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/util.js) |
| | | */ |
| | | declare module 'util' { |
| | | import * as types from 'node:util/types'; |
| | |
| | | * console.error(name); // ENOENT |
| | | * }); |
| | | * ``` |
| | | * @since v16.0.0 |
| | | * @since v16.0.0, v14.17.0 |
| | | */ |
| | | export function getSystemErrorMap(): Map<number, [string, string]>; |
| | | /** |
| | |
| | | * Returns the `string` after replacing any surrogate code points |
| | | * (or equivalently, any unpaired surrogate code units) with the |
| | | * Unicode "replacement character" U+FFFD. |
| | | * @since v16.8.0 |
| | | * @since v16.8.0, v14.18.0 |
| | | */ |
| | | export function toUSVString(string: string): string; |
| | | /** |
| | |
| | | * @return The representation of `object`. |
| | | */ |
| | | export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string; |
| | | export function inspect(object: any, options: InspectOptions): string; |
| | | export function inspect(object: any, options?: InspectOptions): string; |
| | | export namespace inspect { |
| | | let colors: NodeJS.Dict<[number, number]>; |
| | | let styles: { |