UNPKG

15.2 kBTypeScriptView Raw
1import { pre } from './check/precondition/Pre.js';
2import type { IAsyncProperty, IAsyncPropertyWithHooks, AsyncPropertyHookFunction } from './check/property/AsyncProperty.js';
3import { asyncProperty } from './check/property/AsyncProperty.js';
4import type { IProperty, IPropertyWithHooks, PropertyHookFunction } from './check/property/Property.js';
5import { property } from './check/property/Property.js';
6import type { IRawProperty, PropertyFailure } from './check/property/IRawProperty.js';
7import type { Parameters } from './check/runner/configuration/Parameters.js';
8import type { RunDetails, RunDetailsFailureProperty, RunDetailsFailureTooManySkips, RunDetailsFailureInterrupted, RunDetailsSuccess, RunDetailsCommon } from './check/runner/reporter/RunDetails.js';
9import { assert, check } from './check/runner/Runner.js';
10import { sample, statistics } from './check/runner/Sampler.js';
11import type { GeneratorValue } from './arbitrary/gen.js';
12import { gen } from './arbitrary/gen.js';
13import type { ArrayConstraints } from './arbitrary/array.js';
14import { array } from './arbitrary/array.js';
15import type { BigIntConstraints } from './arbitrary/bigInt.js';
16import { bigInt } from './arbitrary/bigInt.js';
17import { bigIntN } from './arbitrary/bigIntN.js';
18import type { BigUintConstraints } from './arbitrary/bigUint.js';
19import { bigUint } from './arbitrary/bigUint.js';
20import { bigUintN } from './arbitrary/bigUintN.js';
21import { boolean } from './arbitrary/boolean.js';
22import type { FalsyContraints, FalsyValue } from './arbitrary/falsy.js';
23import { falsy } from './arbitrary/falsy.js';
24import { ascii } from './arbitrary/ascii.js';
25import { base64 } from './arbitrary/base64.js';
26import { char } from './arbitrary/char.js';
27import { char16bits } from './arbitrary/char16bits.js';
28import { fullUnicode } from './arbitrary/fullUnicode.js';
29import { hexa } from './arbitrary/hexa.js';
30import { unicode } from './arbitrary/unicode.js';
31import { constant } from './arbitrary/constant.js';
32import { constantFrom } from './arbitrary/constantFrom.js';
33import type { ContextValue } from './arbitrary/context.js';
34import { context } from './arbitrary/context.js';
35import type { DateConstraints } from './arbitrary/date.js';
36import { date } from './arbitrary/date.js';
37import type { CloneValue } from './arbitrary/clone.js';
38import { clone } from './arbitrary/clone.js';
39import type { DictionaryConstraints } from './arbitrary/dictionary.js';
40import { dictionary } from './arbitrary/dictionary.js';
41import type { EmailAddressConstraints } from './arbitrary/emailAddress.js';
42import { emailAddress } from './arbitrary/emailAddress.js';
43import type { DoubleConstraints } from './arbitrary/double.js';
44import { double } from './arbitrary/double.js';
45import type { FloatConstraints } from './arbitrary/float.js';
46import { float } from './arbitrary/float.js';
47import { compareBooleanFunc } from './arbitrary/compareBooleanFunc.js';
48import { compareFunc } from './arbitrary/compareFunc.js';
49import { func } from './arbitrary/func.js';
50import type { DomainConstraints } from './arbitrary/domain.js';
51import { domain } from './arbitrary/domain.js';
52import type { IntegerConstraints } from './arbitrary/integer.js';
53import { integer } from './arbitrary/integer.js';
54import { maxSafeInteger } from './arbitrary/maxSafeInteger.js';
55import { maxSafeNat } from './arbitrary/maxSafeNat.js';
56import type { NatConstraints } from './arbitrary/nat.js';
57import { nat } from './arbitrary/nat.js';
58import { ipV4 } from './arbitrary/ipV4.js';
59import { ipV4Extended } from './arbitrary/ipV4Extended.js';
60import { ipV6 } from './arbitrary/ipV6.js';
61import type { LetrecValue, LetrecLooselyTypedBuilder, LetrecLooselyTypedTie, LetrecTypedBuilder, LetrecTypedTie } from './arbitrary/letrec.js';
62import { letrec } from './arbitrary/letrec.js';
63import type { LoremConstraints } from './arbitrary/lorem.js';
64import { lorem } from './arbitrary/lorem.js';
65import { mapToConstant } from './arbitrary/mapToConstant.js';
66import type { Memo } from './arbitrary/memo.js';
67import { memo } from './arbitrary/memo.js';
68import type { MixedCaseConstraints } from './arbitrary/mixedCase.js';
69import { mixedCase } from './arbitrary/mixedCase.js';
70import type { ObjectConstraints } from './arbitrary/object.js';
71import { object } from './arbitrary/object.js';
72import type { JsonSharedConstraints } from './arbitrary/json.js';
73import type { UnicodeJsonSharedConstraints } from './arbitrary/unicodeJson.js';
74import { json } from './arbitrary/json.js';
75import { anything } from './arbitrary/anything.js';
76import { unicodeJsonValue } from './arbitrary/unicodeJsonValue.js';
77import type { JsonValue } from './arbitrary/jsonValue.js';
78import { jsonValue } from './arbitrary/jsonValue.js';
79import { unicodeJson } from './arbitrary/unicodeJson.js';
80import type { OneOfValue, OneOfConstraints, MaybeWeightedArbitrary, WeightedArbitrary } from './arbitrary/oneof.js';
81import { oneof } from './arbitrary/oneof.js';
82import type { OptionConstraints } from './arbitrary/option.js';
83import { option } from './arbitrary/option.js';
84import type { RecordConstraints, RecordValue } from './arbitrary/record.js';
85import { record } from './arbitrary/record.js';
86import type { UniqueArrayConstraints, UniqueArraySharedConstraints, UniqueArrayConstraintsRecommended, UniqueArrayConstraintsCustomCompare, UniqueArrayConstraintsCustomCompareSelect } from './arbitrary/uniqueArray.js';
87import { uniqueArray } from './arbitrary/uniqueArray.js';
88import { infiniteStream } from './arbitrary/infiniteStream.js';
89import { asciiString } from './arbitrary/asciiString.js';
90import { base64String } from './arbitrary/base64String.js';
91import { fullUnicodeString } from './arbitrary/fullUnicodeString.js';
92import { hexaString } from './arbitrary/hexaString.js';
93import type { StringSharedConstraints, StringConstraints } from './arbitrary/string.js';
94import { string } from './arbitrary/string.js';
95import { string16bits } from './arbitrary/string16bits.js';
96import { stringOf } from './arbitrary/stringOf.js';
97import { unicodeString } from './arbitrary/unicodeString.js';
98import type { SubarrayConstraints } from './arbitrary/subarray.js';
99import { subarray } from './arbitrary/subarray.js';
100import type { ShuffledSubarrayConstraints } from './arbitrary/shuffledSubarray.js';
101import { shuffledSubarray } from './arbitrary/shuffledSubarray.js';
102import { tuple } from './arbitrary/tuple.js';
103import { ulid } from './arbitrary/ulid.js';
104import { uuid } from './arbitrary/uuid.js';
105import type { UuidConstraints } from './arbitrary/uuid.js';
106import { uuidV } from './arbitrary/uuidV.js';
107import type { WebAuthorityConstraints } from './arbitrary/webAuthority.js';
108import { webAuthority } from './arbitrary/webAuthority.js';
109import type { WebFragmentsConstraints } from './arbitrary/webFragments.js';
110import { webFragments } from './arbitrary/webFragments.js';
111import type { WebPathConstraints } from './arbitrary/webPath.js';
112import { webPath } from './arbitrary/webPath.js';
113import type { WebQueryParametersConstraints } from './arbitrary/webQueryParameters.js';
114import { webQueryParameters } from './arbitrary/webQueryParameters.js';
115import type { WebSegmentConstraints } from './arbitrary/webSegment.js';
116import { webSegment } from './arbitrary/webSegment.js';
117import type { WebUrlConstraints } from './arbitrary/webUrl.js';
118import { webUrl } from './arbitrary/webUrl.js';
119import type { AsyncCommand } from './check/model/command/AsyncCommand.js';
120import type { Command } from './check/model/command/Command.js';
121import type { ICommand } from './check/model/command/ICommand.js';
122import { commands } from './arbitrary/commands.js';
123import type { ModelRunSetup, ModelRunAsyncSetup } from './check/model/ModelRunner.js';
124import { asyncModelRun, modelRun, scheduledModelRun } from './check/model/ModelRunner.js';
125import { Random } from './random/generator/Random.js';
126import type { GlobalParameters, GlobalAsyncPropertyHookFunction, GlobalPropertyHookFunction } from './check/runner/configuration/GlobalParameters.js';
127import { configureGlobal, readConfigureGlobal, resetConfigureGlobal } from './check/runner/configuration/GlobalParameters.js';
128import { VerbosityLevel } from './check/runner/configuration/VerbosityLevel.js';
129import { ExecutionStatus } from './check/runner/reporter/ExecutionStatus.js';
130import type { ExecutionTree } from './check/runner/reporter/ExecutionTree.js';
131import type { WithCloneMethod } from './check/symbols.js';
132import { cloneMethod, cloneIfNeeded, hasCloneMethod } from './check/symbols.js';
133import { Stream, stream } from './stream/Stream.js';
134import { hash } from './utils/hash.js';
135import type { WithToStringMethod, WithAsyncToStringMethod } from './utils/stringify.js';
136import { stringify, asyncStringify, toStringMethod, hasToStringMethod, asyncToStringMethod, hasAsyncToStringMethod } from './utils/stringify.js';
137import type { Scheduler, SchedulerSequenceItem, SchedulerReportItem, SchedulerConstraints } from './arbitrary/scheduler.js';
138import { scheduler, schedulerFor } from './arbitrary/scheduler.js';
139import { defaultReportMessage, asyncDefaultReportMessage } from './check/runner/utils/RunDetailsFormatter.js';
140import type { CommandsContraints } from './check/model/commands/CommandsContraints.js';
141import { PreconditionFailure } from './check/precondition/PreconditionFailure.js';
142import type { RandomType } from './check/runner/configuration/RandomType.js';
143import type { IntArrayConstraints } from './arbitrary/int8Array.js';
144import { int8Array } from './arbitrary/int8Array.js';
145import { int16Array } from './arbitrary/int16Array.js';
146import { int32Array } from './arbitrary/int32Array.js';
147import { uint8Array } from './arbitrary/uint8Array.js';
148import { uint8ClampedArray } from './arbitrary/uint8ClampedArray.js';
149import { uint16Array } from './arbitrary/uint16Array.js';
150import { uint32Array } from './arbitrary/uint32Array.js';
151import type { Float32ArrayConstraints } from './arbitrary/float32Array.js';
152import { float32Array } from './arbitrary/float32Array.js';
153import type { Float64ArrayConstraints } from './arbitrary/float64Array.js';
154import { float64Array } from './arbitrary/float64Array.js';
155import type { SparseArrayConstraints } from './arbitrary/sparseArray.js';
156import { sparseArray } from './arbitrary/sparseArray.js';
157import { Arbitrary } from './check/arbitrary/definition/Arbitrary.js';
158import { Value } from './check/arbitrary/definition/Value.js';
159import type { Size, SizeForArbitrary, DepthSize } from './arbitrary/_internals/helpers/MaxLengthFromMinLength.js';
160import type { DepthContext, DepthIdentifier } from './arbitrary/_internals/helpers/DepthContext.js';
161import { createDepthIdentifier, getDepthContextFor } from './arbitrary/_internals/helpers/DepthContext.js';
162import type { BigIntArrayConstraints } from './arbitrary/bigInt64Array.js';
163import { bigInt64Array } from './arbitrary/bigInt64Array.js';
164import { bigUint64Array } from './arbitrary/bigUint64Array.js';
165import type { SchedulerAct } from './arbitrary/_internals/interfaces/Scheduler.js';
166import type { StringMatchingConstraints } from './arbitrary/stringMatching.js';
167import { stringMatching } from './arbitrary/stringMatching.js';
168import { noShrink } from './arbitrary/noShrink.js';
169import { noBias } from './arbitrary/noBias.js';
170import { limitShrink } from './arbitrary/limitShrink.js';
171/**
172 * Type of module (commonjs or module)
173 * @remarks Since 1.22.0
174 * @public
175 */
176declare const __type: string;
177/**
178 * Version of fast-check used by your project (eg.: 3.22.0)
179 * @remarks Since 1.22.0
180 * @public
181 */
182declare const __version: string;
183/**
184 * Commit hash of the current code (eg.: 4e04fda63d913c2b5b1ed604db12341b618b56c5)
185 * @remarks Since 2.7.0
186 * @public
187 */
188declare const __commitHash: string;
189export type { IRawProperty, IProperty, IPropertyWithHooks, IAsyncProperty, IAsyncPropertyWithHooks, AsyncPropertyHookFunction, PropertyHookFunction, PropertyFailure, AsyncCommand, Command, ICommand, ModelRunSetup, ModelRunAsyncSetup, Scheduler, SchedulerSequenceItem, SchedulerReportItem, SchedulerAct, WithCloneMethod, WithToStringMethod, WithAsyncToStringMethod, DepthContext, ArrayConstraints, BigIntConstraints, BigIntArrayConstraints, BigUintConstraints, CommandsContraints, DateConstraints, DictionaryConstraints, DomainConstraints, DoubleConstraints, EmailAddressConstraints, FalsyContraints, Float32ArrayConstraints, Float64ArrayConstraints, FloatConstraints, IntArrayConstraints, IntegerConstraints, JsonSharedConstraints, UnicodeJsonSharedConstraints, LoremConstraints, MixedCaseConstraints, NatConstraints, ObjectConstraints, OneOfConstraints, OptionConstraints, RecordConstraints, SchedulerConstraints, UniqueArrayConstraints, UniqueArraySharedConstraints, UniqueArrayConstraintsRecommended, UniqueArrayConstraintsCustomCompare, UniqueArrayConstraintsCustomCompareSelect, UuidConstraints, SparseArrayConstraints, StringMatchingConstraints, StringConstraints, StringSharedConstraints, SubarrayConstraints, ShuffledSubarrayConstraints, WebAuthorityConstraints, WebFragmentsConstraints, WebPathConstraints, WebQueryParametersConstraints, WebSegmentConstraints, WebUrlConstraints, MaybeWeightedArbitrary, WeightedArbitrary, LetrecTypedTie, LetrecTypedBuilder, LetrecLooselyTypedTie, LetrecLooselyTypedBuilder, CloneValue, ContextValue, FalsyValue, GeneratorValue, JsonValue, LetrecValue, OneOfValue, RecordValue, Memo, Size, SizeForArbitrary, DepthSize, GlobalParameters, GlobalAsyncPropertyHookFunction, GlobalPropertyHookFunction, Parameters, RandomType, ExecutionTree, RunDetails, RunDetailsFailureProperty, RunDetailsFailureTooManySkips, RunDetailsFailureInterrupted, RunDetailsSuccess, RunDetailsCommon, DepthIdentifier, };
190export { __type, __version, __commitHash, sample, statistics, check, assert, pre, PreconditionFailure, property, asyncProperty, boolean, falsy, float, double, integer, nat, maxSafeInteger, maxSafeNat, bigIntN, bigUintN, bigInt, bigUint, char, ascii, char16bits, unicode, fullUnicode, hexa, base64, mixedCase, string, asciiString, string16bits, stringOf, unicodeString, fullUnicodeString, hexaString, base64String, stringMatching, limitShrink, lorem, constant, constantFrom, mapToConstant, option, oneof, clone, noBias, noShrink, shuffledSubarray, subarray, array, sparseArray, infiniteStream, uniqueArray, tuple, record, dictionary, anything, object, json, jsonValue, unicodeJson, unicodeJsonValue, letrec, memo, compareBooleanFunc, compareFunc, func, context, gen, date, ipV4, ipV4Extended, ipV6, domain, webAuthority, webSegment, webFragments, webPath, webQueryParameters, webUrl, emailAddress, ulid, uuid, uuidV, int8Array, uint8Array, uint8ClampedArray, int16Array, uint16Array, int32Array, uint32Array, float32Array, float64Array, bigInt64Array, bigUint64Array, asyncModelRun, modelRun, scheduledModelRun, commands, scheduler, schedulerFor, Arbitrary, Value, cloneMethod, cloneIfNeeded, hasCloneMethod, toStringMethod, hasToStringMethod, asyncToStringMethod, hasAsyncToStringMethod, getDepthContextFor, stringify, asyncStringify, defaultReportMessage, asyncDefaultReportMessage, hash, VerbosityLevel, configureGlobal, readConfigureGlobal, resetConfigureGlobal, ExecutionStatus, Random, Stream, stream, createDepthIdentifier, };