UNPKG

@fast-check/poisoning

Version:

Set of utilities to ease detection and revert of poisoning

12 lines (11 loc) 555 B
import type { AllGlobals, GlobalDetails } from './types/AllGlobals.js'; type DiffOnGlobal = { keyName: string; fullyQualifiedKeyName: string; type: 'added' | 'removed' | 'changed'; globalDetails: GlobalDetails; patch: () => void; }; /** Compute the diff between two versions of globals */ export declare function trackDiffsOnGlobals(initialGlobals: AllGlobals, isEligibleGlobal: (globalDetails: GlobalDetails) => boolean, isEligibleProperty: (globalDetails: GlobalDetails, propertyName: string) => boolean): DiffOnGlobal[]; export {};