UNPKG

970 BTypeScriptView Raw
1import type { Arbitrary } from '../check/arbitrary/definition/Arbitrary.js';
2import type { UnicodeJsonSharedConstraints, JsonValue } from './_internals/helpers/JsonConstraintsBuilder.js';
3export type { UnicodeJsonSharedConstraints, JsonValue };
4/**
5 * For any JSON compliant values with unicode support
6 *
7 * Keys and string values rely on {@link unicode}
8 *
9 * As `JSON.parse` preserves `-0`, `unicodeJsonValue` can also have `-0` as a value.
10 * `unicodeJsonValue` 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 * @deprecated Prefer using {@link jsonValue} with `noUnicodeString: false`, it will generate even more unicode strings: includings some having characters outside of BMP plan
15 * @remarks Since 2.20.0
16 * @public
17 */
18export declare function unicodeJsonValue(constraints?: UnicodeJsonSharedConstraints): Arbitrary<JsonValue>;