WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/@types/node/assert/strict.d.ts
@@ -1,49 +1,3 @@
/**
 * In strict assertion mode, non-strict methods behave like their corresponding
 * strict methods. For example, `assert.deepEqual()` will behave like
 * `assert.deepStrictEqual()`.
 *
 * In strict assertion mode, error messages for objects display a diff. In legacy
 * assertion mode, error messages for objects display the objects, often truncated.
 *
 * To use strict assertion mode:
 *
 * ```js
 * import { strict as assert } from 'node:assert';
 * ```
 *
 * ```js
 * import assert from 'node:assert/strict';
 * ```
 *
 * Example error diff:
 *
 * ```js
 * import { strict as assert } from 'node:assert';
 *
 * assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
 * // AssertionError: Expected inputs to be strictly deep-equal:
 * // + actual - expected ... Lines skipped
 * //
 * //   [
 * //     [
 * // ...
 * //       2,
 * // +     3
 * // -     '3'
 * //     ],
 * // ...
 * //     5
 * //   ]
 * ```
 *
 * To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS`
 * environment variables. This will also deactivate the colors in the REPL. For
 * more on color support in terminal environments, read the tty
 * [`getColorDepth()`](https://nodejs.org/docs/latest-v25.x/api/tty.html#writestreamgetcolordepthenv) documentation.
 * @since v15.0.0
 * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/assert/strict.js)
 */
declare module "node:assert/strict" {
    import {
        Assert,