UNPKG

731 BTypeScriptView Raw
1import type { Arbitrary } from '../check/arbitrary/definition/Arbitrary.js';
2import type { JsonSharedConstraints, JsonValue } from './_internals/helpers/JsonConstraintsBuilder.js';
3export type { JsonSharedConstraints, JsonValue };
4/**
5 * For any JSON compliant values
6 *
7 * Keys and string values rely on {@link string}
8 *
9 * As `JSON.parse` preserves `-0`, `jsonValue` can also have `-0` as a value.
10 * `jsonValue` must be seen as: any value that could have been built by doing a `JSON.parse` on a given string.
11 *
12 * @param constraints - Constraints to be applied onto the generated instance
13 *
14 * @remarks Since 2.20.0
15 * @public
16 */
17export declare function jsonValue(constraints?: JsonSharedConstraints): Arbitrary<JsonValue>;