保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 9bdb95c9e34cef640534e5e5a1e2225a80442000
PAMapp/node_modules/@types/node/perf_hooks.d.ts
@@ -26,7 +26,7 @@
 *   performance.measure('A to B', 'A', 'B');
 * });
 * ```
 * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/perf_hooks.js)
 * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/perf_hooks.js)
 */
declare module 'perf_hooks' {
    import { AsyncResource } from 'node:async_hooks';
@@ -397,9 +397,11 @@
            options:
                | {
                      entryTypes: ReadonlyArray<EntryType>;
                      buffered?: boolean | undefined;
                  }
                | {
                      type: EntryType;
                      buffered?: boolean | undefined;
                  }
        ): void;
    }
@@ -485,7 +487,7 @@
    }
    interface RecordableHistogram extends Histogram {
        /**
         * @since v15.9.0
         * @since v15.9.0, v14.18.0
         * @param val The amount to record in the histogram.
         */
        record(val: number | bigint): void;
@@ -494,7 +496,7 @@
         * previous call to `recordDelta()` and records that amount in the histogram.
         *
         * ## Examples
         * @since v15.9.0
         * @since v15.9.0, v14.18.0
         */
        recordDelta(): void;
    }
@@ -546,7 +548,7 @@
    }
    /**
     * Returns a `RecordableHistogram`.
     * @since v15.9.0
     * @since v15.9.0, v14.18.0
     */
    function createHistogram(options?: CreateHistogramOptions): RecordableHistogram;
}