helpyourneighbour/node_modules/jest-leak-detector/build/index.d.ts
BibaBot c294e2e9ae
Some checks are pending
Docker Test / test (push) Waiting to run
Add unit tests for role middleware
2026-03-17 07:07:36 +00:00

22 lines
588 B
TypeScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
declare class LeakDetector {
private _isReferenceBeingHeld;
private _shouldGenerateV8HeapSnapshot;
private readonly _finalizationRegistry?;
constructor(value: unknown, opt?: LeakDetectorOptions);
isLeaking(): Promise<boolean>;
private _runGarbageCollector;
}
export default LeakDetector;
declare interface LeakDetectorOptions {
shouldGenerateV8HeapSnapshot: boolean;
}
export {};