import { Arbitrary, Parameters, readConfigureGlobal } from "fast-check"; import { it } from "@jest/globals"; //#region src/internals/types.d.ts type It = typeof it; type ArbitraryTuple = { [P in keyof Ts]: Arbitrary }; type ArbitraryRecord = { [P in keyof Ts]: Arbitrary }; type Prop = (...args: Ts) => boolean | void | PromiseLike; type PropRecord = (arg: Ts) => boolean | void | PromiseLike; //#endregion //#region src/internals/TestBuilder.d.ts /** * Revamped {it,test} with added `.prop` */ type FastCheckItBuilder = T & ("each" extends keyof T ? T & { prop: (arbitraries: Ts extends [any] | any[] ? ArbitraryTuple : ArbitraryRecord, params?: Parameters) => (testName: string, prop: Ts extends [any] | any[] ? Prop : PropRecord, timeout?: number) => void; } : T) & { [K in keyof Omit]: FastCheckItBuilder }; //#endregion export { It as n, FastCheckItBuilder as t };