bupkis 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +8 -8
- package/dist/commonjs/assertion/assertion-types.d.ts +33 -82
- package/dist/commonjs/assertion/assertion-types.d.ts.map +1 -1
- package/dist/commonjs/assertion/create.d.ts +5 -33
- package/dist/commonjs/assertion/create.d.ts.map +1 -1
- package/dist/commonjs/assertion/create.js +17 -6
- package/dist/commonjs/assertion/create.js.map +1 -1
- package/dist/commonjs/assertion/impl/async.d.ts +5 -5
- package/dist/commonjs/assertion/impl/async.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/async.js +2 -2
- package/dist/commonjs/assertion/impl/async.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync-parametric.d.ts +24 -24
- package/dist/commonjs/assertion/impl/sync-parametric.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-parametric.js +3 -3
- package/dist/commonjs/assertion/impl/sync-parametric.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync.d.ts +50 -50
- package/dist/commonjs/assertion/impl/sync.d.ts.map +1 -1
- package/dist/commonjs/bootstrap.d.ts +71 -61
- package/dist/commonjs/bootstrap.d.ts.map +1 -1
- package/dist/commonjs/bootstrap.js +20 -10
- package/dist/commonjs/bootstrap.js.map +1 -1
- package/dist/commonjs/error.d.ts +12 -5
- package/dist/commonjs/error.d.ts.map +1 -1
- package/dist/commonjs/error.js +19 -4
- package/dist/commonjs/error.js.map +1 -1
- package/dist/commonjs/expect.d.ts +130 -3
- package/dist/commonjs/expect.d.ts.map +1 -1
- package/dist/commonjs/expect.js +115 -0
- package/dist/commonjs/expect.js.map +1 -1
- package/dist/commonjs/guards.d.ts +22 -15
- package/dist/commonjs/guards.d.ts.map +1 -1
- package/dist/commonjs/guards.js +34 -20
- package/dist/commonjs/guards.js.map +1 -1
- package/dist/commonjs/index.d.ts +113 -62
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +44 -42
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/metadata.d.ts +1 -27
- package/dist/commonjs/metadata.d.ts.map +1 -1
- package/dist/commonjs/metadata.js +16 -15
- package/dist/commonjs/metadata.js.map +1 -1
- package/dist/commonjs/schema.d.ts +59 -26
- package/dist/commonjs/schema.d.ts.map +1 -1
- package/dist/commonjs/schema.js +57 -24
- package/dist/commonjs/schema.js.map +1 -1
- package/dist/commonjs/types.d.ts +449 -39
- package/dist/commonjs/types.d.ts.map +1 -1
- package/dist/commonjs/types.js +12 -2
- package/dist/commonjs/types.js.map +1 -1
- package/dist/commonjs/util.d.ts +7 -0
- package/dist/commonjs/util.d.ts.map +1 -1
- package/dist/commonjs/util.js +7 -0
- package/dist/commonjs/util.js.map +1 -1
- package/dist/esm/assertion/assertion-types.d.ts +33 -82
- package/dist/esm/assertion/assertion-types.d.ts.map +1 -1
- package/dist/esm/assertion/create.d.ts +5 -33
- package/dist/esm/assertion/create.d.ts.map +1 -1
- package/dist/esm/assertion/create.js +14 -4
- package/dist/esm/assertion/create.js.map +1 -1
- package/dist/esm/assertion/impl/async.d.ts +5 -5
- package/dist/esm/assertion/impl/async.d.ts.map +1 -1
- package/dist/esm/assertion/impl/async.js +2 -2
- package/dist/esm/assertion/impl/async.js.map +1 -1
- package/dist/esm/assertion/impl/sync-parametric.d.ts +24 -24
- package/dist/esm/assertion/impl/sync-parametric.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-parametric.js +3 -3
- package/dist/esm/assertion/impl/sync-parametric.js.map +1 -1
- package/dist/esm/assertion/impl/sync.d.ts +50 -50
- package/dist/esm/assertion/impl/sync.d.ts.map +1 -1
- package/dist/esm/bootstrap.d.ts +71 -61
- package/dist/esm/bootstrap.d.ts.map +1 -1
- package/dist/esm/bootstrap.js +19 -9
- package/dist/esm/bootstrap.js.map +1 -1
- package/dist/esm/error.d.ts +12 -5
- package/dist/esm/error.d.ts.map +1 -1
- package/dist/esm/error.js +19 -4
- package/dist/esm/error.js.map +1 -1
- package/dist/esm/expect.d.ts +130 -3
- package/dist/esm/expect.d.ts.map +1 -1
- package/dist/esm/expect.js +115 -0
- package/dist/esm/expect.js.map +1 -1
- package/dist/esm/guards.d.ts +22 -15
- package/dist/esm/guards.d.ts.map +1 -1
- package/dist/esm/guards.js +29 -13
- package/dist/esm/guards.js.map +1 -1
- package/dist/esm/index.d.ts +113 -62
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +46 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/metadata.d.ts +1 -27
- package/dist/esm/metadata.d.ts.map +1 -1
- package/dist/esm/metadata.js +2 -1
- package/dist/esm/metadata.js.map +1 -1
- package/dist/esm/schema.d.ts +59 -26
- package/dist/esm/schema.d.ts.map +1 -1
- package/dist/esm/schema.js +57 -24
- package/dist/esm/schema.js.map +1 -1
- package/dist/esm/types.d.ts +449 -39
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/types.js +12 -2
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/util.d.ts +7 -0
- package/dist/esm/util.d.ts.map +1 -1
- package/dist/esm/util.js +7 -0
- package/dist/esm/util.js.map +1 -1
- package/package.json +89 -15
- package/src/assertion/assertion-types.ts +38 -41
- package/src/assertion/create.ts +16 -65
- package/src/assertion/impl/async.ts +2 -2
- package/src/assertion/impl/sync-parametric.ts +3 -3
- package/src/bootstrap.ts +21 -10
- package/src/error.ts +21 -4
- package/src/expect.ts +269 -18
- package/src/guards.ts +29 -51
- package/src/index.ts +71 -11
- package/src/metadata.ts +3 -4
- package/src/schema.ts +59 -26
- package/src/types.ts +593 -72
- package/src/util.ts +7 -0
- package/dist/commonjs/api.d.ts +0 -93
- package/dist/commonjs/api.d.ts.map +0 -1
- package/dist/commonjs/api.js +0 -8
- package/dist/commonjs/api.js.map +0 -1
- package/dist/esm/api.d.ts +0 -93
- package/dist/esm/api.d.ts.map +0 -1
- package/dist/esm/api.js +0 -7
- package/dist/esm/api.js.map +0 -1
- package/src/api.ts +0 -149
- package/src/schema.md +0 -15
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -6,112 +6,163 @@
|
|
|
6
6
|
* guards, schema definitions, utility functions, and error types.
|
|
7
7
|
*
|
|
8
8
|
* @module bupkis
|
|
9
|
+
* @category API
|
|
10
|
+
* @example
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { expect, expectAsync, z, createAssertion } from 'bupkis';
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @showGroups
|
|
9
17
|
*/
|
|
10
|
-
|
|
11
|
-
export * as assertion from './assertion/index.js';
|
|
18
|
+
import { z } from 'zod/v4';
|
|
12
19
|
export { expect, expectAsync } from './bootstrap.js';
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
export
|
|
16
|
-
|
|
20
|
+
export { AssertionError } from './error.js';
|
|
21
|
+
/**
|
|
22
|
+
* Re-export of most (all?) types defined within <span
|
|
23
|
+
* class="bupkis">Bupkis</span>.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
*
|
|
27
|
+
* ```ts
|
|
28
|
+
* import { types } from 'bupkis';
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
17
31
|
export type * as types from './types.js';
|
|
18
|
-
|
|
19
|
-
export {
|
|
32
|
+
/**
|
|
33
|
+
* Re-export of {@link https://zod.dev Zod v4} for use in custom assertion
|
|
34
|
+
* implementations.
|
|
35
|
+
*/
|
|
36
|
+
export { z };
|
|
37
|
+
/**
|
|
38
|
+
* @primaryExport
|
|
39
|
+
*/
|
|
40
|
+
export type { Bupkis, CreateAssertionFn, CreateAsyncAssertionFn, Expect, ExpectAsync, FailFn, UseFn, } from './types.js';
|
|
20
41
|
export { createAssertion, createAsyncAssertion, fail, use };
|
|
21
|
-
declare const
|
|
42
|
+
declare const
|
|
43
|
+
/**
|
|
44
|
+
* The main factory function for creating asynchronous assertions.
|
|
45
|
+
*
|
|
46
|
+
* Exported from the entry point; is also a property of {@link Expect} and
|
|
47
|
+
* {@link ExpectAsync}.
|
|
48
|
+
*
|
|
49
|
+
* @function
|
|
50
|
+
*/
|
|
51
|
+
createAssertion: import("./types.js").CreateAssertionFn,
|
|
52
|
+
/**
|
|
53
|
+
* The main factory function for creating asynchronous assertions.
|
|
54
|
+
*
|
|
55
|
+
* Exported from the entry point; is also a property of {@link Expect} and
|
|
56
|
+
* {@link ExpectAsync}.
|
|
57
|
+
*
|
|
58
|
+
* @function
|
|
59
|
+
*/
|
|
60
|
+
createAsyncAssertion: import("./types.js").CreateAsyncAssertionFn,
|
|
61
|
+
/**
|
|
62
|
+
* {@inheritDoc FailFn}
|
|
63
|
+
*
|
|
64
|
+
* @function
|
|
65
|
+
*/
|
|
66
|
+
fail: import("./types.js").FailFn,
|
|
67
|
+
/**
|
|
68
|
+
* {@inheritDoc UseFn}
|
|
69
|
+
*
|
|
70
|
+
* @function
|
|
71
|
+
*/
|
|
72
|
+
use: import("./types.js").UseFn<readonly [import("./types.js").AssertionFunctionSync<readonly [z.ZodMap<z.ZodAny, z.ZodAny>, readonly ["to contain", "to include"], z.ZodAny], (subject: Map<any, any>, key: any) => boolean, readonly [z.ZodMap<z.ZodAny, z.ZodAny>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, z.ZodAny]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, "to have size", z.ZodNumber], (subject: Map<unknown, unknown>, expectedSize: number) => boolean, readonly [z.ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("./types.js").PhraseLiteralSlot<"to have size">, z.ZodNumber]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, "to be empty"], (subject: Map<unknown, unknown>) => boolean, readonly [z.ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("./types.js").PhraseLiteralSlot<"to be empty">]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodSet<z.ZodAny>, readonly ["to contain", "to include"], z.ZodAny], (subject: Set<any>, value: any) => boolean, readonly [z.ZodSet<z.ZodAny>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, z.ZodAny]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<Set<unknown>, Set<unknown>>, "to have size", z.ZodNumber], (subject: Set<unknown>, expectedSize: number) => boolean, readonly [z.ZodCustom<Set<unknown>, Set<unknown>>, import("./types.js").PhraseLiteralSlot<"to have size">, z.ZodNumber]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<Set<unknown>, Set<unknown>>, "to be empty"], (subject: Set<unknown>) => boolean, readonly [z.ZodCustom<Set<unknown>, Set<unknown>>, import("./types.js").PhraseLiteralSlot<"to be empty">]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>>, readonly ["to contain", "to include"], z.ZodAny], (subject: WeakMap<WeakKey, unknown>, key: any) => boolean, readonly [z.ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, z.ZodAny]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>>, readonly ["to contain", "to include"], z.ZodAny], (subject: WeakSet<WeakKey>, value: any) => boolean, readonly [z.ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, z.ZodAny]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodArray<z.ZodAny>, readonly ["to contain", "to include"], z.ZodAny], (subject: any[], value: any) => boolean, readonly [z.ZodArray<z.ZodAny>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, z.ZodAny]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodArray<z.ZodAny>, "to have size", z.ZodNumber], (subject: any[], expectedSize: number) => boolean, readonly [z.ZodArray<z.ZodAny>, import("./types.js").PhraseLiteralSlot<"to have size">, z.ZodNumber]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodArray<z.ZodAny>, "to have length", z.ZodNumber], (subject: any[], expectedLength: number) => boolean, readonly [z.ZodArray<z.ZodAny>, import("./types.js").PhraseLiteralSlot<"to have length">, z.ZodNumber]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodArray<z.ZodAny>, "to be non-empty"], (subject: any[]) => {
|
|
22
73
|
actual: number;
|
|
23
74
|
expected: string;
|
|
24
75
|
message: string;
|
|
25
|
-
} | undefined, readonly [
|
|
76
|
+
} | undefined, readonly [z.ZodArray<z.ZodAny>, import("./types.js").PhraseLiteralSlot<"to be non-empty">]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodObject<{}, z.core.$loose>, readonly ["to have keys", "to have properties", "to have props"], z.ZodTuple<[z.ZodString], z.ZodString>], (_: {
|
|
26
77
|
[x: string]: unknown;
|
|
27
|
-
}, keys: [string, ...string[]]) =>
|
|
28
|
-
[k: string]:
|
|
29
|
-
},
|
|
78
|
+
}, keys: [string, ...string[]]) => z.ZodObject<{
|
|
79
|
+
[k: string]: z.ZodNonOptional<z.ZodUnknown>;
|
|
80
|
+
}, z.core.$loose>, readonly [z.ZodObject<{}, z.core.$loose>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to have keys", "to have properties", "to have props"]>, z.ZodTuple<[z.ZodString], z.ZodString>]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodObject<{}, z.core.$loose>, "to have size", z.ZodNumber], (subject: {
|
|
30
81
|
[x: string]: unknown;
|
|
31
82
|
}, expectedSize: number) => {
|
|
32
83
|
actual: number;
|
|
33
84
|
expected: number;
|
|
34
85
|
message: string;
|
|
35
|
-
} | undefined, readonly [import("zod/v4").ZodObject<{}, import("zod/v4/core").$loose>, import("./assertion/assertion-types.js").PhraseLiteralSlot<"to have size">, import("zod/v4").ZodNumber]>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be a string"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be a string"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be a number", "to be finite"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be a number", "to be finite"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be infinite"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be infinite"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be Infinity"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be Infinity"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be -Infinity"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be -Infinity"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be a boolean", "to be boolean", "to be a bool"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be a boolean", "to be boolean", "to be a bool"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be positive", "to be a positive number"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be positive", "to be a positive number"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be a positive integer", "to be a positive int"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be a positive integer", "to be a positive int"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be negative", "to be a negative number"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be negative", "to be a negative number"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be a negative integer", "to be a negative int"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be a negative integer", "to be a negative int"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be true"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be true"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be false"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be false"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be a bigint", "to be a BigInt"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be a bigint", "to be a BigInt"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be a symbol", "to be a Symbol"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be a symbol", "to be a Symbol"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be a function"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be a function"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be an async function"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be an async function"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be NaN"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be NaN"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be an integer", "to be a safe integer", "to be an int", "to be a safe int"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be an integer", "to be a safe integer", "to be an int", "to be a safe int"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be null"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be null"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be undefined"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be undefined"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be an array", "to be array"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be an array", "to be array"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be a date", "to be a Date"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be a date", "to be a Date"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be a class", "to be a constructor"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be a class", "to be a constructor"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be a primitive"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be a primitive"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be a RegExp", "to be a regex", "to be a regexp"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be a RegExp", "to be a regex", "to be a regexp"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be truthy", "to exist", "to be ok"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be truthy", "to exist", "to be ok"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be falsy"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be falsy"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be an object"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be an object"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [readonly ["to be a record", "to be a plain object"]], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [readonly ["to be a record", "to be a plain object"]]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodAny>, "to be empty"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodAny>, "to be empty"]>, readonly [import("zod/v4").ZodArray<import("zod/v4").ZodAny>, import("./assertion/assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [import("zod/v4").ZodRecord<import("zod/v4").ZodAny, import("zod/v4").ZodUnknown>, "to be empty"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [import("zod/v4").ZodRecord<import("zod/v4").ZodAny, import("zod/v4").ZodUnknown>, "to be empty"]>, readonly [import("zod/v4").ZodRecord<import("zod/v4").ZodAny, import("zod/v4").ZodUnknown>, import("./assertion/assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be an Error"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be an Error"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [import("zod/v4").ZodString, "to be empty"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [import("zod/v4").ZodString, "to be empty"]>, readonly [import("zod/v4").ZodString, import("./assertion/assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly [import("zod/v4").ZodString, "to be non-empty"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly [import("zod/v4").ZodString, "to be non-empty"]>, readonly [import("zod/v4").ZodString, import("./assertion/assertion-types.js").PhraseLiteralSlot<"to be non-empty">]>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be defined"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be defined"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be a Set"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be a Set"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be a WeakMap"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be a WeakMap"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to be a WeakSet"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to be a WeakSet"]>, never>, import("./assertion/assertion-types.js").AssertionSchemaSync<readonly ["to have a null prototype"], import("./assertion/assertion-types.js").AssertionImplSchemaSync<readonly ["to have a null prototype"]>, never>, import("./assertion/assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, "to be an enumerable property of", import("zod/v4").ZodObject<{}, import("zod/v4/core").$loose>], (subject: string | number | symbol, obj: {
|
|
86
|
+
} | undefined, readonly [z.ZodObject<{}, z.core.$loose>, import("./types.js").PhraseLiteralSlot<"to have size">, z.ZodNumber]>, import("./types.js").AssertionSchemaSync<readonly ["to be a string"], import("./types.js").AssertionImplSchemaSync<readonly ["to be a string"]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be a number", "to be finite"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be a number", "to be finite"]]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be infinite"], import("./types.js").AssertionImplSchemaSync<readonly ["to be infinite"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be Infinity"], import("./types.js").AssertionImplSchemaSync<readonly ["to be Infinity"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be -Infinity"], import("./types.js").AssertionImplSchemaSync<readonly ["to be -Infinity"]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be a boolean", "to be boolean", "to be a bool"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be a boolean", "to be boolean", "to be a bool"]]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be positive", "to be a positive number"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be positive", "to be a positive number"]]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be a positive integer", "to be a positive int"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be a positive integer", "to be a positive int"]]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be negative", "to be a negative number"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be negative", "to be a negative number"]]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be a negative integer", "to be a negative int"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be a negative integer", "to be a negative int"]]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be true"], import("./types.js").AssertionImplSchemaSync<readonly ["to be true"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be false"], import("./types.js").AssertionImplSchemaSync<readonly ["to be false"]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be a bigint", "to be a BigInt"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be a bigint", "to be a BigInt"]]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be a symbol", "to be a Symbol"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be a symbol", "to be a Symbol"]]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be a function"], import("./types.js").AssertionImplSchemaSync<readonly ["to be a function"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be an async function"], import("./types.js").AssertionImplSchemaSync<readonly ["to be an async function"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be NaN"], import("./types.js").AssertionImplSchemaSync<readonly ["to be NaN"]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be an integer", "to be a safe integer", "to be an int", "to be a safe int"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be an integer", "to be a safe integer", "to be an int", "to be a safe int"]]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be null"], import("./types.js").AssertionImplSchemaSync<readonly ["to be null"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be undefined"], import("./types.js").AssertionImplSchemaSync<readonly ["to be undefined"]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be an array", "to be array"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be an array", "to be array"]]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be a date", "to be a Date"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be a date", "to be a Date"]]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be a class", "to be a constructor"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be a class", "to be a constructor"]]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be a primitive"], import("./types.js").AssertionImplSchemaSync<readonly ["to be a primitive"]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be a RegExp", "to be a regex", "to be a regexp"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be a RegExp", "to be a regex", "to be a regexp"]]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be truthy", "to exist", "to be ok"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be truthy", "to exist", "to be ok"]]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be falsy"], import("./types.js").AssertionImplSchemaSync<readonly ["to be falsy"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be an object"], import("./types.js").AssertionImplSchemaSync<readonly ["to be an object"]>, never>, import("./types.js").AssertionSchemaSync<readonly [readonly ["to be a record", "to be a plain object"]], import("./types.js").AssertionImplSchemaSync<readonly [readonly ["to be a record", "to be a plain object"]]>, never>, import("./types.js").AssertionSchemaSync<readonly [z.ZodArray<z.ZodAny>, "to be empty"], import("./types.js").AssertionImplSchemaSync<readonly [z.ZodArray<z.ZodAny>, "to be empty"]>, readonly [z.ZodArray<z.ZodAny>, import("./types.js").PhraseLiteralSlot<"to be empty">]>, import("./types.js").AssertionSchemaSync<readonly [z.ZodRecord<z.ZodAny, z.ZodUnknown>, "to be empty"], import("./types.js").AssertionImplSchemaSync<readonly [z.ZodRecord<z.ZodAny, z.ZodUnknown>, "to be empty"]>, readonly [z.ZodRecord<z.ZodAny, z.ZodUnknown>, import("./types.js").PhraseLiteralSlot<"to be empty">]>, import("./types.js").AssertionSchemaSync<readonly ["to be an Error"], import("./types.js").AssertionImplSchemaSync<readonly ["to be an Error"]>, never>, import("./types.js").AssertionSchemaSync<readonly [z.ZodString, "to be empty"], import("./types.js").AssertionImplSchemaSync<readonly [z.ZodString, "to be empty"]>, readonly [z.ZodString, import("./types.js").PhraseLiteralSlot<"to be empty">]>, import("./types.js").AssertionSchemaSync<readonly [z.ZodString, "to be non-empty"], import("./types.js").AssertionImplSchemaSync<readonly [z.ZodString, "to be non-empty"]>, readonly [z.ZodString, import("./types.js").PhraseLiteralSlot<"to be non-empty">]>, import("./types.js").AssertionSchemaSync<readonly ["to be defined"], import("./types.js").AssertionImplSchemaSync<readonly ["to be defined"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be a Set"], import("./types.js").AssertionImplSchemaSync<readonly ["to be a Set"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be a WeakMap"], import("./types.js").AssertionImplSchemaSync<readonly ["to be a WeakMap"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be a WeakSet"], import("./types.js").AssertionImplSchemaSync<readonly ["to be a WeakSet"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to have a null prototype"], import("./types.js").AssertionImplSchemaSync<readonly ["to have a null prototype"]>, never>, import("./types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodSymbol]>, "to be an enumerable property of", z.ZodObject<{}, z.core.$loose>], (subject: string | number | symbol, obj: {
|
|
36
87
|
[x: string]: unknown;
|
|
37
|
-
}) => boolean, readonly [
|
|
88
|
+
}) => boolean, readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodSymbol]>, import("./types.js").PhraseLiteralSlot<"to be an enumerable property of">, z.ZodObject<{}, z.core.$loose>]>, import("./types.js").AssertionSchemaSync<readonly ["to be sealed"], import("./types.js").AssertionImplSchemaSync<readonly ["to be sealed"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be frozen"], import("./types.js").AssertionImplSchemaSync<readonly ["to be frozen"]>, never>, import("./types.js").AssertionSchemaSync<readonly ["to be extensible"], import("./types.js").AssertionImplSchemaSync<readonly ["to be extensible"]>, never>, import("./types.js").AssertionFunctionSync<readonly [readonly ["to be an instance of", "to be a"], z.ZodCustom<import("./types.js").Constructor, import("./types.js").Constructor>], (_: unknown, ctor: import("./types.js").Constructor) => z.ZodCustom<any, any>, readonly [z.ZodUnknown, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to be an instance of", "to be a"]>, z.ZodCustom<import("./types.js").Constructor, import("./types.js").Constructor>]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodAny, readonly ["to be a", "to be an"], z.ZodEnum<{
|
|
38
89
|
[x: string]: string;
|
|
39
|
-
}>], (_: any, type: string) =>
|
|
90
|
+
}>], (_: any, type: string) => z.ZodString | z.ZodNumber | z.ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>> | z.ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>> | z.ZodArray<z.ZodAny> | z.ZodBoolean | z.ZodBigInt | z.ZodSymbol | z.ZodNull | z.ZodUndefined | z.ZodDate | z.ZodCustom<RegExp, RegExp> | z.ZodCustom<Error, Error> | z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | z.ZodObject<{}, z.core.$loose> | z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>> | z.ZodCustom<WeakRef<WeakKey>, WeakRef<WeakKey>>, readonly [z.ZodAny, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to be a", "to be an"]>, z.ZodEnum<{
|
|
40
91
|
[x: string]: string;
|
|
41
|
-
}>]>, import("./
|
|
92
|
+
}>]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodNumber, "to be greater than", z.ZodNumber], (_: number, other: number) => z.ZodNumber, readonly [z.ZodNumber, import("./types.js").PhraseLiteralSlot<"to be greater than">, z.ZodNumber]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodNumber, "to be less than", z.ZodNumber], (_: number, other: number) => z.ZodNumber, readonly [z.ZodNumber, import("./types.js").PhraseLiteralSlot<"to be less than">, z.ZodNumber]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodNumber, readonly ["to be greater than or equal to", "to be at least"], z.ZodNumber], (_: number, other: number) => z.ZodNumber, readonly [z.ZodNumber, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to be greater than or equal to", "to be at least"]>, z.ZodNumber]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodNumber, readonly ["to be less than or equal to", "to be at most"], z.ZodNumber], (_: number, other: number) => z.ZodNumber, readonly [z.ZodNumber, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to be less than or equal to", "to be at most"]>, z.ZodNumber]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodNumber, readonly ["to be within", "to be between"], z.ZodNumber, z.ZodNumber], (subject: number, min: number, max: number) => {
|
|
42
93
|
actual: number;
|
|
43
94
|
expected: string;
|
|
44
95
|
message: string;
|
|
45
|
-
} | undefined, readonly [
|
|
96
|
+
} | undefined, readonly [z.ZodNumber, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to be within", "to be between"]>, z.ZodNumber, z.ZodNumber]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodNumber, "to be close to", z.ZodNumber, z.ZodOptional<z.ZodNumber>], (subject: number, expected: number, tolerance?: number | undefined) => {
|
|
46
97
|
actual: number;
|
|
47
98
|
expected: number;
|
|
48
99
|
message: string;
|
|
49
|
-
} | undefined, readonly [
|
|
100
|
+
} | undefined, readonly [z.ZodNumber, import("./types.js").PhraseLiteralSlot<"to be close to">, z.ZodNumber, z.ZodOptional<z.ZodNumber>]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodString, "to be greater than", z.ZodString], (subject: string, other: string) => {
|
|
50
101
|
actual: string;
|
|
51
102
|
expected: string;
|
|
52
103
|
message: string;
|
|
53
|
-
} | undefined, readonly [
|
|
104
|
+
} | undefined, readonly [z.ZodString, import("./types.js").PhraseLiteralSlot<"to be greater than">, z.ZodString]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodString, "to be less than", z.ZodString], (subject: string, other: string) => {
|
|
54
105
|
actual: string;
|
|
55
106
|
expected: string;
|
|
56
107
|
message: string;
|
|
57
|
-
} | undefined, readonly [
|
|
108
|
+
} | undefined, readonly [z.ZodString, import("./types.js").PhraseLiteralSlot<"to be less than">, z.ZodString]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodString, "to be greater than or equal to", z.ZodString], (subject: string, other: string) => {
|
|
58
109
|
actual: string;
|
|
59
110
|
expected: string;
|
|
60
111
|
message: string;
|
|
61
|
-
} | undefined, readonly [
|
|
112
|
+
} | undefined, readonly [z.ZodString, import("./types.js").PhraseLiteralSlot<"to be greater than or equal to">, z.ZodString]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodString, "to be less than or equal to", z.ZodString], (subject: string, other: string) => {
|
|
62
113
|
actual: string;
|
|
63
114
|
expected: string;
|
|
64
115
|
message: string;
|
|
65
|
-
} | undefined, readonly [
|
|
116
|
+
} | undefined, readonly [z.ZodString, import("./types.js").PhraseLiteralSlot<"to be less than or equal to">, z.ZodString]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodString, readonly ["to begin with", "to start with"], z.ZodString], (subject: string, prefix: string) => {
|
|
66
117
|
actual: string;
|
|
67
118
|
expected: string;
|
|
68
119
|
message: string;
|
|
69
|
-
} | undefined, readonly [
|
|
120
|
+
} | undefined, readonly [z.ZodString, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to begin with", "to start with"]>, z.ZodString]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodString, "to end with", z.ZodString], (subject: string, suffix: string) => {
|
|
70
121
|
actual: string;
|
|
71
122
|
expected: string;
|
|
72
123
|
message: string;
|
|
73
|
-
} | undefined, readonly [
|
|
124
|
+
} | undefined, readonly [z.ZodString, import("./types.js").PhraseLiteralSlot<"to end with">, z.ZodString]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodAny, "to be one of", z.ZodArray<z.ZodAny>], (subject: any, values: any[]) => {
|
|
74
125
|
actual: unknown;
|
|
75
126
|
expected: string;
|
|
76
127
|
message: string;
|
|
77
|
-
} | undefined, readonly [
|
|
128
|
+
} | undefined, readonly [z.ZodAny, import("./types.js").PhraseLiteralSlot<"to be one of">, z.ZodArray<z.ZodAny>]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, "to have arity", z.ZodNumber], (subject: (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, expectedArity: number) => {
|
|
78
129
|
actual: number;
|
|
79
130
|
expected: number;
|
|
80
131
|
message: string;
|
|
81
|
-
} | undefined, readonly [
|
|
132
|
+
} | undefined, readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, import("./types.js").PhraseLiteralSlot<"to have arity">, z.ZodNumber]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<Error, Error>, "to have message", z.ZodString], (subject: Error, expectedMessage: string) => {
|
|
82
133
|
actual: string;
|
|
83
134
|
expected: string;
|
|
84
135
|
message: string;
|
|
85
|
-
} | undefined, readonly [
|
|
136
|
+
} | undefined, readonly [z.ZodCustom<Error, Error>, import("./types.js").PhraseLiteralSlot<"to have message">, z.ZodString]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<Error, Error>, "to have message matching", z.ZodCustom<RegExp, RegExp>], (subject: Error, pattern: RegExp) => {
|
|
86
137
|
actual: string;
|
|
87
138
|
expected: string;
|
|
88
139
|
message: string;
|
|
89
|
-
} | undefined, readonly [
|
|
140
|
+
} | undefined, readonly [z.ZodCustom<Error, Error>, import("./types.js").PhraseLiteralSlot<"to have message matching">, z.ZodCustom<RegExp, RegExp>]>, import("./types.js").AssertionFunctionSync<readonly [readonly ["to be", "to equal", "equals", "is", "is equal to", "to strictly equal"], z.ZodUnknown], (subject: unknown, value: unknown) => {
|
|
90
141
|
actual: unknown;
|
|
91
142
|
expected: unknown;
|
|
92
143
|
message: string;
|
|
93
|
-
} | undefined, readonly [
|
|
94
|
-
length:
|
|
95
|
-
},
|
|
96
|
-
length:
|
|
97
|
-
},
|
|
98
|
-
length:
|
|
99
|
-
},
|
|
100
|
-
length:
|
|
101
|
-
},
|
|
102
|
-
length:
|
|
103
|
-
},
|
|
104
|
-
length:
|
|
105
|
-
},
|
|
144
|
+
} | undefined, readonly [z.ZodUnknown, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to be", "to equal", "equals", "is", "is equal to", "to strictly equal"]>, z.ZodUnknown]>, import("./types.js").AssertionSchemaSync<readonly [z.ZodObject<{}, z.core.$loose>, readonly ["to deep equal", "to deeply equal"], z.ZodObject<{}, z.core.$loose>], import("./types.js").AssertionImplSchemaSync<readonly [z.ZodObject<{}, z.core.$loose>, readonly ["to deep equal", "to deeply equal"], z.ZodObject<{}, z.core.$loose>]>, readonly [z.ZodObject<{}, z.core.$loose>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to deep equal", "to deeply equal"]>, z.ZodObject<{}, z.core.$loose>]>, import("./types.js").AssertionSchemaSync<readonly [z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodObject<{
|
|
145
|
+
length: z.ZodNumber;
|
|
146
|
+
}, z.core.$loose>]>, readonly ["to deep equal", "to deeply equal"], z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodObject<{
|
|
147
|
+
length: z.ZodNumber;
|
|
148
|
+
}, z.core.$loose>]>], import("./types.js").AssertionImplSchemaSync<readonly [z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodObject<{
|
|
149
|
+
length: z.ZodNumber;
|
|
150
|
+
}, z.core.$loose>]>, readonly ["to deep equal", "to deeply equal"], z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodObject<{
|
|
151
|
+
length: z.ZodNumber;
|
|
152
|
+
}, z.core.$loose>]>]>, readonly [z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodObject<{
|
|
153
|
+
length: z.ZodNumber;
|
|
154
|
+
}, z.core.$loose>]>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to deep equal", "to deeply equal"]>, z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodObject<{
|
|
155
|
+
length: z.ZodNumber;
|
|
156
|
+
}, z.core.$loose>]>]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, "to throw"], (subject: (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown) => {
|
|
106
157
|
actual: unknown;
|
|
107
158
|
message: string;
|
|
108
|
-
} | undefined, readonly [
|
|
159
|
+
} | undefined, readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, import("./types.js").PhraseLiteralSlot<"to throw">]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to throw a", "to thrown an"], z.ZodCustom<import("./types.js").Constructor, import("./types.js").Constructor>], (subject: (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, ctor: import("./types.js").Constructor) => false | {
|
|
109
160
|
actual: {};
|
|
110
161
|
expected: import("./types.js").Constructor;
|
|
111
162
|
message: string;
|
|
112
|
-
} | undefined, readonly [
|
|
163
|
+
} | undefined, readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to throw a", "to thrown an"]>, z.ZodCustom<import("./types.js").Constructor, import("./types.js").Constructor>]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to throw"], z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>, z.ZodObject<{}, z.core.$loose>]>], (subject: (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, param: string | RegExp | {
|
|
113
164
|
[x: string]: unknown;
|
|
114
|
-
}) => boolean, readonly [
|
|
165
|
+
}) => boolean, readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to throw"]>, z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>, z.ZodObject<{}, z.core.$loose>]>]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to throw a", "to thrown an"], z.ZodCustom<import("./types.js").Constructor, import("./types.js").Constructor>, "satisfying", z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>, z.ZodObject<{}, z.core.$loose>]>], (subject: (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, ctor: import("./types.js").Constructor, param: string | RegExp | {
|
|
115
166
|
[x: string]: unknown;
|
|
116
167
|
}) => {
|
|
117
168
|
actual: string;
|
|
@@ -123,33 +174,33 @@ declare const createAssertion: typeof import("./assertion/create.js").createAsse
|
|
|
123
174
|
[x: string]: unknown;
|
|
124
175
|
};
|
|
125
176
|
message: string;
|
|
126
|
-
} | undefined, readonly [
|
|
177
|
+
} | undefined, readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to throw a", "to thrown an"]>, z.ZodCustom<import("./types.js").Constructor, import("./types.js").Constructor>, import("./types.js").PhraseLiteralSlot<"satisfying">, z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>, z.ZodObject<{}, z.core.$loose>]>]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodString, readonly ["includes", "contains", "to include", "to contain"], z.ZodString], (subject: string, expected: string) => boolean, readonly [z.ZodString, import("./types.js").PhraseLiteralChoiceSlot<readonly ["includes", "contains", "to include", "to contain"]>, z.ZodString]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodString, "to match", z.ZodCustom<RegExp, RegExp>], (subject: string, regex: RegExp) => boolean, readonly [z.ZodString, import("./types.js").PhraseLiteralSlot<"to match">, z.ZodCustom<RegExp, RegExp>]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodNonOptional<z.ZodObject<{}, z.core.$loose>>, readonly ["to satisfy", "to be like"], z.ZodObject<{}, z.core.$loose>], (subject: {
|
|
127
178
|
[x: string]: unknown;
|
|
128
179
|
}, shape: {
|
|
129
180
|
[x: string]: unknown;
|
|
130
|
-
}) =>
|
|
131
|
-
length:
|
|
132
|
-
},
|
|
133
|
-
length:
|
|
134
|
-
},
|
|
181
|
+
}) => z.ZodType<{}, z.core.$loose>, readonly [z.ZodNonOptional<z.ZodObject<{}, z.core.$loose>>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to satisfy", "to be like"]>, z.ZodObject<{}, z.core.$loose>]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodObject<{
|
|
182
|
+
length: z.ZodNumber;
|
|
183
|
+
}, z.core.$loose>]>, readonly ["to satisfy", "to be like"], z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodObject<{
|
|
184
|
+
length: z.ZodNumber;
|
|
185
|
+
}, z.core.$loose>]>], (subject: unknown[] | [unknown, ...unknown[]] | {
|
|
135
186
|
[x: string]: unknown;
|
|
136
187
|
length: number;
|
|
137
|
-
}, shape:
|
|
188
|
+
}, shape: unknown[] | [unknown, ...unknown[]] | {
|
|
138
189
|
[x: string]: unknown;
|
|
139
190
|
length: number;
|
|
140
|
-
}) => typeof import("./schema.js").ArrayLikeSchema, readonly [
|
|
141
|
-
length:
|
|
142
|
-
},
|
|
143
|
-
length:
|
|
144
|
-
},
|
|
191
|
+
}) => typeof import("./schema.js").ArrayLikeSchema, readonly [z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodObject<{
|
|
192
|
+
length: z.ZodNumber;
|
|
193
|
+
}, z.core.$loose>]>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to satisfy", "to be like"]>, z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodObject<{
|
|
194
|
+
length: z.ZodNumber;
|
|
195
|
+
}, z.core.$loose>]>]>, import("./types.js").AssertionFunctionSync<readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, "to have arity", z.ZodNumber], (subject: (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, expectedArity: number) => {
|
|
145
196
|
actual: number;
|
|
146
197
|
expected: number;
|
|
147
198
|
message: string;
|
|
148
|
-
} | undefined, readonly [
|
|
199
|
+
} | undefined, readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, import("./types.js").PhraseLiteralSlot<"to have arity">, z.ZodNumber]>], readonly [import("./types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to resolve", "to fulfill"]], (subject: (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown) => Promise<boolean>, readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to resolve", "to fulfill"]>]>, import("./types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to resolve", "to fulfill"]], (subject: PromiseLike<unknown>) => Promise<boolean>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to resolve", "to fulfill"]>]>, import("./types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, "to reject"], (subject: (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown) => Promise<boolean>, readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, import("./types.js").PhraseLiteralSlot<"to reject">]>, import("./types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, "to reject"], (subject: PromiseLike<unknown>) => Promise<boolean>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("./types.js").PhraseLiteralSlot<"to reject">]>, import("./types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with a", "to reject with an"], z.ZodCustom<import("./types.js").Constructor, import("./types.js").Constructor>], (subject: (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, ctor: import("./types.js").Constructor) => Promise<boolean>, readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, z.ZodCustom<import("./types.js").Constructor, import("./types.js").Constructor>]>, import("./types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with a", "to reject with an"], z.ZodCustom<import("./types.js").Constructor, import("./types.js").Constructor>], (subject: PromiseLike<unknown>, ctor: import("./types.js").Constructor) => Promise<boolean>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, z.ZodCustom<import("./types.js").Constructor, import("./types.js").Constructor>]>, import("./types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with"], z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>, z.ZodObject<{}, z.core.$loose>]>], (subject: (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, param: string | RegExp | {
|
|
149
200
|
[x: string]: unknown;
|
|
150
|
-
}) => Promise<boolean>, readonly [
|
|
201
|
+
}) => Promise<boolean>, readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to reject with"]>, z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>, z.ZodObject<{}, z.core.$loose>]>]>, import("./types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with"], z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>, z.ZodObject<{}, z.core.$loose>]>], (subject: PromiseLike<unknown>, param: string | RegExp | {
|
|
151
202
|
[x: string]: unknown;
|
|
152
|
-
}) => Promise<boolean>, readonly [
|
|
203
|
+
}) => Promise<boolean>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to reject with"]>, z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>, z.ZodObject<{}, z.core.$loose>]>]>, import("./types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>, z.ZodObject<{}, z.core.$loose>]>], (promise: PromiseLike<unknown>, param: string | RegExp | {
|
|
153
204
|
[x: string]: unknown;
|
|
154
205
|
}) => Promise<boolean | {
|
|
155
206
|
actual: unknown;
|
|
@@ -163,7 +214,7 @@ declare const createAssertion: typeof import("./assertion/create.js").createAsse
|
|
|
163
214
|
};
|
|
164
215
|
message: string;
|
|
165
216
|
expect?: never;
|
|
166
|
-
}>, readonly [
|
|
217
|
+
}>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>, z.ZodObject<{}, z.core.$loose>]>]>, import("./types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>, z.ZodObject<{}, z.core.$loose>]>], (subject: (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, param: string | RegExp | {
|
|
167
218
|
[x: string]: unknown;
|
|
168
219
|
}) => Promise<boolean | {
|
|
169
220
|
actual: unknown;
|
|
@@ -177,5 +228,5 @@ declare const createAssertion: typeof import("./assertion/create.js").createAsse
|
|
|
177
228
|
};
|
|
178
229
|
message: string;
|
|
179
230
|
expect?: never;
|
|
180
|
-
}>, readonly [
|
|
231
|
+
}>, readonly [z.ZodCustom<(...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("./types.js").MutableOrReadonly<unknown[]>) => unknown>, import("./types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>, z.ZodObject<{}, z.core.$loose>]>]>]>;
|
|
181
232
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C;;;;;;;;;GASG;AACH,YAAY,KAAK,KAAK,MAAM,YAAY,CAAC;AAEzC;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,CAAC;AAEb;;GAEG;AACH,YAAY,EACV,MAAM,EACN,iBAAiB,EACjB,sBAAsB,EACtB,MAAM,EACN,WAAW,EACX,MAAM,EACN,KAAK,GACN,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;AAC5D,QAAA;AACE;;;;;;;GAOG;AACH,eAAe;AACf;;;;;;;GAOG;AACH,oBAAoB;AACpB;;;;GAIG;AACH,IAAI;AACJ;;;;GAIG;AACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iZAEgB,CAAC"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -7,54 +7,56 @@
|
|
|
7
7
|
* guards, schema definitions, utility functions, and error types.
|
|
8
8
|
*
|
|
9
9
|
* @module bupkis
|
|
10
|
+
* @category API
|
|
11
|
+
* @example
|
|
12
|
+
*
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { expect, expectAsync, z, createAssertion } from 'bupkis';
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @showGroups
|
|
10
18
|
*/
|
|
11
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
14
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
15
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
16
|
-
}
|
|
17
|
-
Object.defineProperty(o, k2, desc);
|
|
18
|
-
}) : (function(o, m, k, k2) {
|
|
19
|
-
if (k2 === undefined) k2 = k;
|
|
20
|
-
o[k2] = m[k];
|
|
21
|
-
}));
|
|
22
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
23
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
24
|
-
}) : function(o, v) {
|
|
25
|
-
o["default"] = v;
|
|
26
|
-
});
|
|
27
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
28
|
-
var ownKeys = function(o) {
|
|
29
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
30
|
-
var ar = [];
|
|
31
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
32
|
-
return ar;
|
|
33
|
-
};
|
|
34
|
-
return ownKeys(o);
|
|
35
|
-
};
|
|
36
|
-
return function (mod) {
|
|
37
|
-
if (mod && mod.__esModule) return mod;
|
|
38
|
-
var result = {};
|
|
39
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
40
|
-
__setModuleDefault(result, mod);
|
|
41
|
-
return result;
|
|
42
|
-
};
|
|
43
|
-
})();
|
|
44
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
exports.use = exports.fail = exports.createAsyncAssertion = exports.createAssertion = exports.z = exports.
|
|
20
|
+
exports.use = exports.fail = exports.createAsyncAssertion = exports.createAssertion = exports.z = exports.AssertionError = exports.expectAsync = exports.expect = void 0;
|
|
21
|
+
const v4_1 = require("zod/v4");
|
|
22
|
+
Object.defineProperty(exports, "z", { enumerable: true, get: function () { return v4_1.z; } });
|
|
46
23
|
const bootstrap_js_1 = require("./bootstrap.js");
|
|
47
|
-
exports.assertion = __importStar(require("./assertion/index.js"));
|
|
48
24
|
var bootstrap_js_2 = require("./bootstrap.js");
|
|
49
25
|
Object.defineProperty(exports, "expect", { enumerable: true, get: function () { return bootstrap_js_2.expect; } });
|
|
50
26
|
Object.defineProperty(exports, "expectAsync", { enumerable: true, get: function () { return bootstrap_js_2.expectAsync; } });
|
|
51
|
-
|
|
52
|
-
exports
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
27
|
+
var error_js_1 = require("./error.js");
|
|
28
|
+
Object.defineProperty(exports, "AssertionError", { enumerable: true, get: function () { return error_js_1.AssertionError; } });
|
|
29
|
+
const {
|
|
30
|
+
/**
|
|
31
|
+
* The main factory function for creating asynchronous assertions.
|
|
32
|
+
*
|
|
33
|
+
* Exported from the entry point; is also a property of {@link Expect} and
|
|
34
|
+
* {@link ExpectAsync}.
|
|
35
|
+
*
|
|
36
|
+
* @function
|
|
37
|
+
*/
|
|
38
|
+
createAssertion,
|
|
39
|
+
/**
|
|
40
|
+
* The main factory function for creating asynchronous assertions.
|
|
41
|
+
*
|
|
42
|
+
* Exported from the entry point; is also a property of {@link Expect} and
|
|
43
|
+
* {@link ExpectAsync}.
|
|
44
|
+
*
|
|
45
|
+
* @function
|
|
46
|
+
*/
|
|
47
|
+
createAsyncAssertion,
|
|
48
|
+
/**
|
|
49
|
+
* {@inheritDoc FailFn}
|
|
50
|
+
*
|
|
51
|
+
* @function
|
|
52
|
+
*/
|
|
53
|
+
fail,
|
|
54
|
+
/**
|
|
55
|
+
* {@inheritDoc UseFn}
|
|
56
|
+
*
|
|
57
|
+
* @function
|
|
58
|
+
*/
|
|
59
|
+
use, ..._rest } = bootstrap_js_1.expect;
|
|
58
60
|
exports.createAssertion = createAssertion;
|
|
59
61
|
exports.createAsyncAssertion = createAsyncAssertion;
|
|
60
62
|
exports.fail = fail;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,+BAA2B;AAuBlB,kFAvBA,MAAC,OAuBA;AArBV,iDAA6D;AAC7D,+CAAqD;AAA5C,sGAAA,MAAM,OAAA;AAAE,2GAAA,WAAW,OAAA;AAE5B,uCAA4C;AAAnC,0GAAA,cAAc,OAAA;AAiCvB,MAAM;AACJ;;;;;;;GAOG;AACH,eAAe;AACf;;;;;;;GAOG;AACH,oBAAoB;AACpB;;;;GAIG;AACH,IAAI;AACJ;;;;GAIG;AACH,GAAG,EACH,GAAG,KAAK,EACT,GAAG,qBAAiB,CAAC;AAjCb,0CAAe;AAAE,oDAAoB;AAAE,oBAAI;AAAE,kBAAG"}
|