UNPKG

fast-check

Version:

Property based testing framework for JavaScript (like QuickCheck)

15 lines (14 loc) 512 B
import type { Arbitrary } from '../check/arbitrary/definition/Arbitrary.js'; import type { JsonSharedConstraints } from './_internals/helpers/JsonConstraintsBuilder.js'; export type { JsonSharedConstraints }; /** * For any JSON strings * * Keys and string values rely on {@link string} * * @param constraints - Constraints to be applied onto the generated instance (since 2.5.0) * * @remarks Since 0.0.7 * @public */ export declare function json(constraints?: JsonSharedConstraints): Arbitrary<string>;