bupkis 0.11.1 → 0.12.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 +68 -91
- package/dist/commonjs/assertion/assertion-async.d.ts.map +1 -1
- package/dist/commonjs/assertion/assertion-async.js +32 -9
- package/dist/commonjs/assertion/assertion-async.js.map +1 -1
- package/dist/commonjs/assertion/assertion-standard-schema-async.d.ts +64 -0
- package/dist/commonjs/assertion/assertion-standard-schema-async.d.ts.map +1 -0
- package/dist/commonjs/assertion/assertion-standard-schema-async.js +155 -0
- package/dist/commonjs/assertion/assertion-standard-schema-async.js.map +1 -0
- package/dist/commonjs/assertion/assertion-standard-schema-sync.d.ts +64 -0
- package/dist/commonjs/assertion/assertion-standard-schema-sync.d.ts.map +1 -0
- package/dist/commonjs/assertion/assertion-standard-schema-sync.js +164 -0
- package/dist/commonjs/assertion/assertion-standard-schema-sync.js.map +1 -0
- package/dist/commonjs/assertion/assertion-sync.d.ts.map +1 -1
- package/dist/commonjs/assertion/assertion-sync.js +38 -5
- package/dist/commonjs/assertion/assertion-sync.js.map +1 -1
- package/dist/commonjs/assertion/assertion-types.d.ts +82 -14
- package/dist/commonjs/assertion/assertion-types.d.ts.map +1 -1
- package/dist/commonjs/assertion/assertion.d.ts +11 -0
- package/dist/commonjs/assertion/assertion.d.ts.map +1 -1
- package/dist/commonjs/assertion/assertion.js +30 -0
- package/dist/commonjs/assertion/assertion.js.map +1 -1
- package/dist/commonjs/assertion/create.d.ts.map +1 -1
- package/dist/commonjs/assertion/create.js +10 -2
- package/dist/commonjs/assertion/create.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync-basic.d.ts +37 -37
- package/dist/commonjs/assertion/impl/sync-basic.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-collection.d.ts +3 -3
- package/dist/commonjs/assertion/impl/sync-collection.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-date.d.ts +1 -1
- package/dist/commonjs/assertion/impl/sync-date.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-esoteric.d.ts +3 -3
- package/dist/commonjs/assertion/impl/sync-esoteric.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-parametric.d.ts +1 -1
- package/dist/commonjs/assertion/impl/sync.d.ts +18 -18
- package/dist/commonjs/assertion/impl/sync.d.ts.map +1 -1
- package/dist/commonjs/assertion/slotify.js +25 -7
- package/dist/commonjs/assertion/slotify.js.map +1 -1
- package/dist/commonjs/bootstrap.d.ts +9 -9
- package/dist/commonjs/diff.d.ts.map +1 -1
- package/dist/commonjs/diff.js +14 -21
- package/dist/commonjs/diff.js.map +1 -1
- package/dist/commonjs/guards.d.ts +16 -0
- package/dist/commonjs/guards.d.ts.map +1 -1
- package/dist/commonjs/guards.js +27 -1
- package/dist/commonjs/guards.js.map +1 -1
- package/dist/commonjs/index.d.ts +22 -15
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/internal-schema.d.ts.map +1 -1
- package/dist/commonjs/internal-schema.js +30 -12
- package/dist/commonjs/internal-schema.js.map +1 -1
- package/dist/commonjs/standard-schema.d.ts +192 -0
- package/dist/commonjs/standard-schema.d.ts.map +1 -0
- package/dist/commonjs/standard-schema.js +13 -0
- package/dist/commonjs/standard-schema.js.map +1 -0
- package/dist/commonjs/types.d.ts +165 -13
- package/dist/commonjs/types.d.ts.map +1 -1
- package/dist/esm/assertion/assertion-async.d.ts.map +1 -1
- package/dist/esm/assertion/assertion-async.js +33 -10
- package/dist/esm/assertion/assertion-async.js.map +1 -1
- package/dist/esm/assertion/assertion-standard-schema-async.d.ts +64 -0
- package/dist/esm/assertion/assertion-standard-schema-async.d.ts.map +1 -0
- package/dist/esm/assertion/assertion-standard-schema-async.js +151 -0
- package/dist/esm/assertion/assertion-standard-schema-async.js.map +1 -0
- package/dist/esm/assertion/assertion-standard-schema-sync.d.ts +64 -0
- package/dist/esm/assertion/assertion-standard-schema-sync.d.ts.map +1 -0
- package/dist/esm/assertion/assertion-standard-schema-sync.js +160 -0
- package/dist/esm/assertion/assertion-standard-schema-sync.js.map +1 -0
- package/dist/esm/assertion/assertion-sync.d.ts.map +1 -1
- package/dist/esm/assertion/assertion-sync.js +39 -6
- package/dist/esm/assertion/assertion-sync.js.map +1 -1
- package/dist/esm/assertion/assertion-types.d.ts +82 -14
- package/dist/esm/assertion/assertion-types.d.ts.map +1 -1
- package/dist/esm/assertion/assertion.d.ts +11 -0
- package/dist/esm/assertion/assertion.d.ts.map +1 -1
- package/dist/esm/assertion/assertion.js +30 -0
- package/dist/esm/assertion/assertion.js.map +1 -1
- package/dist/esm/assertion/create.d.ts.map +1 -1
- package/dist/esm/assertion/create.js +11 -3
- package/dist/esm/assertion/create.js.map +1 -1
- package/dist/esm/assertion/impl/sync-basic.d.ts +37 -37
- package/dist/esm/assertion/impl/sync-basic.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-collection.d.ts +3 -3
- package/dist/esm/assertion/impl/sync-collection.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-date.d.ts +1 -1
- package/dist/esm/assertion/impl/sync-date.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-esoteric.d.ts +3 -3
- package/dist/esm/assertion/impl/sync-esoteric.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-parametric.d.ts +1 -1
- package/dist/esm/assertion/impl/sync.d.ts +18 -18
- package/dist/esm/assertion/impl/sync.d.ts.map +1 -1
- package/dist/esm/assertion/slotify.js +26 -8
- package/dist/esm/assertion/slotify.js.map +1 -1
- package/dist/esm/bootstrap.d.ts +9 -9
- package/dist/esm/diff.d.ts.map +1 -1
- package/dist/esm/diff.js +14 -21
- package/dist/esm/diff.js.map +1 -1
- package/dist/esm/guards.d.ts +16 -0
- package/dist/esm/guards.d.ts.map +1 -1
- package/dist/esm/guards.js +25 -0
- package/dist/esm/guards.js.map +1 -1
- package/dist/esm/index.d.ts +22 -15
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/internal-schema.d.ts.map +1 -1
- package/dist/esm/internal-schema.js +31 -13
- package/dist/esm/internal-schema.js.map +1 -1
- package/dist/esm/standard-schema.d.ts +192 -0
- package/dist/esm/standard-schema.d.ts.map +1 -0
- package/dist/esm/standard-schema.js +12 -0
- package/dist/esm/standard-schema.js.map +1 -0
- package/dist/esm/types.d.ts +165 -13
- package/dist/esm/types.d.ts.map +1 -1
- package/package.json +26 -18
- package/src/assertion/assertion-async.ts +54 -14
- package/src/assertion/assertion-standard-schema-async.ts +202 -0
- package/src/assertion/assertion-standard-schema-sync.ts +214 -0
- package/src/assertion/assertion-sync.ts +65 -10
- package/src/assertion/assertion-types.ts +113 -13
- package/src/assertion/assertion.ts +40 -0
- package/src/assertion/create.ts +11 -5
- package/src/assertion/slotify.ts +29 -7
- package/src/diff.ts +14 -29
- package/src/guards.ts +29 -0
- package/src/index.ts +16 -6
- package/src/internal-schema.ts +36 -16
- package/src/standard-schema.ts +214 -0
- package/src/types.ts +176 -14
|
@@ -61,7 +61,7 @@ export declare const SyncDateAssertions: readonly [import("../assertion-types.js
|
|
|
61
61
|
actual: string;
|
|
62
62
|
expected: string;
|
|
63
63
|
message: string;
|
|
64
|
-
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodDate, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodISODateTime, import("zod/v4").ZodISODate]>, import("zod/v4").ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be the same date as">, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodDate, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodISODateTime, import("zod/v4").ZodISODate]>, import("zod/v4").ZodNumber]>]>, import("../assertion-types.js").
|
|
64
|
+
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodDate, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodISODateTime, import("zod/v4").ZodISODate]>, import("zod/v4").ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be the same date as">, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodDate, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodISODateTime, import("zod/v4").ZodISODate]>, import("zod/v4").ZodNumber]>]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a valid date", "to be date-like"]], import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodDate, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodISODateTime, import("zod/v4").ZodISODate]>, import("zod/v4").ZodNumber]>, never>, import("../assertion-types.js").AssertionFunctionSync<readonly ["to be a weekday"], (subject: unknown) => {
|
|
65
65
|
message: string;
|
|
66
66
|
} | undefined, never>, import("../assertion-types.js").AssertionFunctionSync<readonly ["to be a weekend"], (subject: unknown) => {
|
|
67
67
|
message: string;
|
|
@@ -71,7 +71,7 @@ export declare const SyncDateAssertions: readonly [import("../assertion-types.js
|
|
|
71
71
|
*
|
|
72
72
|
* @group Assertion Collections
|
|
73
73
|
*/
|
|
74
|
-
export declare const SyncEsotericAssertions: readonly [import("../assertion-types.js").
|
|
74
|
+
export declare const SyncEsotericAssertions: readonly [import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to have a null prototype", "to be a dictionary"]], import("zod/v4").ZodCustom<Record<PropertyKey, unknown>, Record<PropertyKey, unknown>>, never>, import("../assertion-types.js").AssertionFunctionSync<readonly ["to be frozen"], (subject: unknown) => {
|
|
75
75
|
actual: boolean;
|
|
76
76
|
expected: boolean;
|
|
77
77
|
message: string;
|
|
@@ -79,13 +79,13 @@ export declare const SyncEsotericAssertions: readonly [import("../assertion-type
|
|
|
79
79
|
actual: boolean;
|
|
80
80
|
expected: boolean;
|
|
81
81
|
message: string;
|
|
82
|
-
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("../assertion-types.js").PhraseLiteralSlot<"to be an enumerable property of">, import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>, "to have enumerable property", import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>], (_subject: unknown, key: string | number | symbol) => import("zod/v4").ZodCustom<unknown, unknown>, readonly [import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralSlot<"to have enumerable property">, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>]>, import("../assertion-types.js").
|
|
82
|
+
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("../assertion-types.js").PhraseLiteralSlot<"to be an enumerable property of">, import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>, "to have enumerable property", import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>], (_subject: unknown, key: string | number | symbol) => import("zod/v4").ZodCustom<unknown, unknown>, readonly [import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralSlot<"to have enumerable property">, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be sealed"], import("zod/v4").ZodUnknown, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be extensible"], import("zod/v4").ZodUnknown, never>];
|
|
83
83
|
/**
|
|
84
84
|
* Tuple of all built-in basic synchronous assertions.
|
|
85
85
|
*
|
|
86
86
|
* @group Assertion Collections
|
|
87
87
|
*/
|
|
88
|
-
export declare const SyncBasicAssertions: readonly [import("../assertion-types.js").
|
|
88
|
+
export declare const SyncBasicAssertions: readonly [import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be an array", "to be array"]], import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be an async function"], import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a bigint", "to be a BigInt"]], import("zod/v4").ZodBigInt, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a boolean", "to be boolean", "to be a bool"]], import("zod/v4").ZodBoolean, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a class", "to be a constructor", "to be constructible"]], import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a date", "to be a Date"]], import("zod/v4").ZodDate, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be defined"], import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>, never>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("zod/v4").ZodTuple<[import("zod/v4").ZodUnknown], import("zod/v4").ZodUnknown>, import("zod/v4").ZodObject<{
|
|
89
89
|
length: import("zod/v4").ZodNumber;
|
|
90
90
|
}, import("zod/v4/core").$loose>]>, "to be empty"], (subject: unknown[] | [unknown, ...unknown[]] | {
|
|
91
91
|
[x: string]: unknown;
|
|
@@ -96,7 +96,7 @@ export declare const SyncBasicAssertions: readonly [import("../assertion-types.j
|
|
|
96
96
|
message: string;
|
|
97
97
|
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("zod/v4").ZodTuple<[import("zod/v4").ZodUnknown], import("zod/v4").ZodUnknown>, import("zod/v4").ZodObject<{
|
|
98
98
|
length: import("zod/v4").ZodNumber;
|
|
99
|
-
}, import("zod/v4/core").$loose>]>, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("../assertion-types.js").
|
|
99
|
+
}, import("zod/v4/core").$loose>]>, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [import("zod/v4").ZodRecord<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("zod/v4").ZodUnknown>, "to be empty"], import("zod/v4").ZodRecord<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodRecord<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [import("zod/v4").ZodString, "to be empty"], import("zod/v4").ZodString, readonly [import("zod/v4").ZodString, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be an Error", "to be a Error"]], import("zod/v4").ZodCustom<Error, Error>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be false"], import("zod/v4").ZodLiteral<false>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be falsy"], import("zod/v4").ZodNullable<import("zod/v4").ZodAny>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be a function"], import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be infinite"], import("zod/v4").ZodUnion<[import("zod/v4").ZodLiteral<number>, import("zod/v4").ZodLiteral<number>]>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be an integer", "to be a safe integer", "to be an int", "to be a safe int"]], import("zod/v4").ZodNumber, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be NaN"], import("zod/v4").ZodNaN, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be negative", "to be a negative number"]], import("zod/v4").ZodNumber, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be -Infinity"], import("zod/v4").ZodLiteral<number>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a negative integer", "to be a negative int"]], import("zod/v4").ZodNumber, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [import("zod/v4").ZodString, "to be non-empty"], import("zod/v4").ZodString, readonly [import("zod/v4").ZodString, import("../assertion-types.js").PhraseLiteralSlot<"to be non-empty">]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be null"], import("zod/v4").ZodNull, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a number", "to be finite"]], import("zod/v4").ZodNumber, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be an object"], import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be positive", "to be a positive number"]], import("zod/v4").ZodNumber, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be Infinity"], import("zod/v4").ZodLiteral<number>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a positive integer", "to be a positive int"]], import("zod/v4").ZodNumber, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be a primitive"], import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodBoolean, import("zod/v4").ZodBigInt, import("zod/v4").ZodSymbol, import("zod/v4").ZodNull, import("zod/v4").ZodUndefined]>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a record", "to be a plain object"]], import("zod/v4").ZodRecord<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("zod/v4").ZodUnknown>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a RegExp", "to be a regex", "to be a regexp"]], import("zod/v4").ZodCustom<RegExp, RegExp>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be a Set"], import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be a string"], import("zod/v4").ZodString, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a symbol", "to be a Symbol"]], import("zod/v4").ZodSymbol, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be true"], import("zod/v4").ZodLiteral<true>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be truthy", "to exist", "to be ok"]], import("zod/v4").ZodNonOptional<import("zod/v4").ZodAny>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be undefined"], import("zod/v4").ZodUndefined, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be a WeakMap"], import("zod/v4").ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be a WeakSet"], import("zod/v4").ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>>, never>];
|
|
100
100
|
/**
|
|
101
101
|
* Tuple of all built-in parametric synchronous assertions.
|
|
102
102
|
*
|
|
@@ -104,7 +104,7 @@ export declare const SyncBasicAssertions: readonly [import("../assertion-types.j
|
|
|
104
104
|
*/
|
|
105
105
|
export declare const SyncParametricAssertions: readonly [import("../assertion-types.js").AssertionFunctionSync<readonly [readonly ["to be an instance of", "to be a", "to be an"], import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (_: unknown, ctor: import("../../types.js").Constructor) => import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>, readonly [import("zod/v4").ZodUnknown, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to be an instance of", "to be a", "to be an"]>, import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodUnknown, readonly ["to be a", "to be an", "to have type"], import("zod/v4").ZodEnum<{
|
|
106
106
|
[x: string]: string;
|
|
107
|
-
}>], (_: unknown, type: string) => import("zod/v4").ZodString | import("zod/v4").ZodCustom<
|
|
107
|
+
}>], (_: unknown, type: string) => import("zod/v4").ZodString | import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown> | import("zod/v4").ZodNumber | import("zod/v4").ZodSymbol | import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>> | import("zod/v4").ZodBoolean | import("zod/v4").ZodBigInt | import("zod/v4").ZodNull | import("zod/v4").ZodUndefined | import("zod/v4").ZodArray<import("zod/v4").ZodUnknown> | import("zod/v4").ZodCustom<RegExp, RegExp> | import("zod/v4").ZodDate | import("zod/v4").ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>> | import("zod/v4").ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>> | import("zod/v4").ZodCustom<Error, Error> | import("zod/v4").ZodCustom<WeakRef<WeakKey>, WeakRef<WeakKey>> | import("zod/v4").ZodObject<{}, import("zod/v4/core").$loose>, readonly [import("zod/v4").ZodUnknown, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to be a", "to be an", "to have type"]>, import("zod/v4").ZodEnum<{
|
|
108
108
|
[x: string]: string;
|
|
109
109
|
}>]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNumber, "to be greater than", import("zod/v4").ZodNumber], (_: number, other: number) => import("zod/v4").ZodNumber, readonly [import("zod/v4").ZodNumber, import("../assertion-types.js").PhraseLiteralSlot<"to be greater than">, import("zod/v4").ZodNumber]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNumber, readonly ["to be less than", "to be lt"], import("zod/v4").ZodNumber], (_: number, other: number) => import("zod/v4").ZodNumber, readonly [import("zod/v4").ZodNumber, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to be less than", "to be lt"]>, import("zod/v4").ZodNumber]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNumber, readonly ["to be greater than or equal to", "to be at least", "to be gte"], import("zod/v4").ZodNumber], (_: number, other: number) => import("zod/v4").ZodNumber, readonly [import("zod/v4").ZodNumber, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to be greater than or equal to", "to be at least", "to be gte"]>, import("zod/v4").ZodNumber]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNumber, readonly ["to be less than or equal to", "to be at most", "to be lte"], import("zod/v4").ZodNumber], (_: number, other: number) => import("zod/v4").ZodNumber, readonly [import("zod/v4").ZodNumber, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to be less than or equal to", "to be at most", "to be lte"]>, import("zod/v4").ZodNumber]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNumber, readonly ["to be within", "to be between"], import("zod/v4").ZodNumber, import("zod/v4").ZodNumber], (subject: number, min: number, max: number) => {
|
|
110
110
|
message: string;
|
|
@@ -198,7 +198,7 @@ export declare const SyncCollectionAssertions: readonly [import("../assertion-ty
|
|
|
198
198
|
actual: unknown;
|
|
199
199
|
expected: string;
|
|
200
200
|
message: string;
|
|
201
|
-
} | undefined, readonly [import("zod/v4").ZodUnion<[import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("zod/v4").ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, "to have size", import("zod/v4").ZodInt], (_subject: Map<unknown, unknown>, expectedSize: number) => import("zod/v4").ZodMap<import("zod/v4").ZodUnknown, import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to have size">, import("zod/v4").ZodInt]>, import("../assertion-types.js").
|
|
201
|
+
} | undefined, readonly [import("zod/v4").ZodUnion<[import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("zod/v4").ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, "to have size", import("zod/v4").ZodInt], (_subject: Map<unknown, unknown>, expectedSize: number) => import("zod/v4").ZodMap<import("zod/v4").ZodUnknown, import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to have size">, import("zod/v4").ZodInt]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, "to be empty"], import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodUnion<[import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, import("zod/v4").ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>>]>, readonly ["to contain", "to include"], import("zod/v4").ZodUnknown], (subject: Set<unknown> | WeakSet<WeakKey>, value: unknown) => {
|
|
202
202
|
message: string;
|
|
203
203
|
actual?: never;
|
|
204
204
|
expected?: never;
|
|
@@ -206,9 +206,9 @@ export declare const SyncCollectionAssertions: readonly [import("../assertion-ty
|
|
|
206
206
|
actual: unknown;
|
|
207
207
|
expected: string;
|
|
208
208
|
message: string;
|
|
209
|
-
} | undefined, readonly [import("zod/v4").ZodUnion<[import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, import("zod/v4").ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, "to have size", import("zod/v4").ZodInt], (_subject: Set<unknown>, expectedSize: number) => import("zod/v4").ZodSet<import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to have size">, import("zod/v4").ZodInt]>, import("../assertion-types.js").
|
|
209
|
+
} | undefined, readonly [import("zod/v4").ZodUnion<[import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, import("zod/v4").ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, "to have size", import("zod/v4").ZodInt], (_subject: Set<unknown>, expectedSize: number) => import("zod/v4").ZodSet<import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to have size">, import("zod/v4").ZodInt]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, "to be empty"], import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, readonly [import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, readonly ["to contain", "to include"], import("zod/v4").ZodUnknown], (subject: unknown[], value: unknown) => {
|
|
210
210
|
message: string;
|
|
211
|
-
} | undefined, readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, readonly ["to have length", "to have size"], import("zod/v4").ZodInt], (_subject: unknown[], expectedSize: number) => import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to have length", "to have size"]>, import("zod/v4").ZodInt]>, import("../assertion-types.js").
|
|
211
|
+
} | undefined, readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, readonly ["to have length", "to have size"], import("zod/v4").ZodInt], (_subject: unknown[], expectedSize: number) => import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to have length", "to have size"]>, import("zod/v4").ZodInt]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, "to be non-empty"], import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralSlot<"to be non-empty">]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodCustom<Record<PropertyKey, unknown> | ((...args: any[]) => any), Record<PropertyKey, unknown> | ((...args: any[]) => any)>, readonly ["to have keys", "to have properties", "to have props", "to contain keys", "to contain properties", "to contain props", "to include keys", "to include properties", "to include props"], import("zod/v4").ZodArray<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>>], (_subject: Record<PropertyKey, unknown> | ((...args: any[]) => any), keys: (string | number | symbol)[]) => import("zod/v4").ZodCustom<Record<PropertyKey, unknown> | ((...args: any[]) => any), Record<PropertyKey, unknown> | ((...args: any[]) => any)>, readonly [import("zod/v4").ZodCustom<Record<PropertyKey, unknown> | ((...args: any[]) => any), Record<PropertyKey, unknown> | ((...args: any[]) => any)>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to have keys", "to have properties", "to have props", "to contain keys", "to contain properties", "to contain props", "to include keys", "to include properties", "to include props"]>, import("zod/v4").ZodArray<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>>]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodRecord<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("zod/v4").ZodUnknown>, "to have size", import("zod/v4").ZodInt], (subject: Record<string | number | symbol, unknown>, expectedSize: number) => {
|
|
212
212
|
actual: number;
|
|
213
213
|
expected: number;
|
|
214
214
|
message: string;
|
|
@@ -268,7 +268,7 @@ export declare const SyncAssertions: readonly [import("../assertion-types.js").A
|
|
|
268
268
|
actual: unknown;
|
|
269
269
|
expected: string;
|
|
270
270
|
message: string;
|
|
271
|
-
} | undefined, readonly [import("zod/v4").ZodUnion<[import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("zod/v4").ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, "to have size", import("zod/v4").ZodInt], (_subject: Map<unknown, unknown>, expectedSize: number) => import("zod/v4").ZodMap<import("zod/v4").ZodUnknown, import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to have size">, import("zod/v4").ZodInt]>, import("../assertion-types.js").
|
|
271
|
+
} | undefined, readonly [import("zod/v4").ZodUnion<[import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("zod/v4").ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, "to have size", import("zod/v4").ZodInt], (_subject: Map<unknown, unknown>, expectedSize: number) => import("zod/v4").ZodMap<import("zod/v4").ZodUnknown, import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to have size">, import("zod/v4").ZodInt]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, "to be empty"], import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodUnion<[import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, import("zod/v4").ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>>]>, readonly ["to contain", "to include"], import("zod/v4").ZodUnknown], (subject: Set<unknown> | WeakSet<WeakKey>, value: unknown) => {
|
|
272
272
|
message: string;
|
|
273
273
|
actual?: never;
|
|
274
274
|
expected?: never;
|
|
@@ -276,9 +276,9 @@ export declare const SyncAssertions: readonly [import("../assertion-types.js").A
|
|
|
276
276
|
actual: unknown;
|
|
277
277
|
expected: string;
|
|
278
278
|
message: string;
|
|
279
|
-
} | undefined, readonly [import("zod/v4").ZodUnion<[import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, import("zod/v4").ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, "to have size", import("zod/v4").ZodInt], (_subject: Set<unknown>, expectedSize: number) => import("zod/v4").ZodSet<import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to have size">, import("zod/v4").ZodInt]>, import("../assertion-types.js").
|
|
279
|
+
} | undefined, readonly [import("zod/v4").ZodUnion<[import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, import("zod/v4").ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, "to have size", import("zod/v4").ZodInt], (_subject: Set<unknown>, expectedSize: number) => import("zod/v4").ZodSet<import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to have size">, import("zod/v4").ZodInt]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, "to be empty"], import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, readonly [import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, readonly ["to contain", "to include"], import("zod/v4").ZodUnknown], (subject: unknown[], value: unknown) => {
|
|
280
280
|
message: string;
|
|
281
|
-
} | undefined, readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, readonly ["to have length", "to have size"], import("zod/v4").ZodInt], (_subject: unknown[], expectedSize: number) => import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to have length", "to have size"]>, import("zod/v4").ZodInt]>, import("../assertion-types.js").
|
|
281
|
+
} | undefined, readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to contain", "to include"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, readonly ["to have length", "to have size"], import("zod/v4").ZodInt], (_subject: unknown[], expectedSize: number) => import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to have length", "to have size"]>, import("zod/v4").ZodInt]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, "to be non-empty"], import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralSlot<"to be non-empty">]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodCustom<Record<PropertyKey, unknown> | ((...args: any[]) => any), Record<PropertyKey, unknown> | ((...args: any[]) => any)>, readonly ["to have keys", "to have properties", "to have props", "to contain keys", "to contain properties", "to contain props", "to include keys", "to include properties", "to include props"], import("zod/v4").ZodArray<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>>], (_subject: Record<PropertyKey, unknown> | ((...args: any[]) => any), keys: (string | number | symbol)[]) => import("zod/v4").ZodCustom<Record<PropertyKey, unknown> | ((...args: any[]) => any), Record<PropertyKey, unknown> | ((...args: any[]) => any)>, readonly [import("zod/v4").ZodCustom<Record<PropertyKey, unknown> | ((...args: any[]) => any), Record<PropertyKey, unknown> | ((...args: any[]) => any)>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to have keys", "to have properties", "to have props", "to contain keys", "to contain properties", "to contain props", "to include keys", "to include properties", "to include props"]>, import("zod/v4").ZodArray<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>>]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodRecord<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("zod/v4").ZodUnknown>, "to have size", import("zod/v4").ZodInt], (subject: Record<string | number | symbol, unknown>, expectedSize: number) => {
|
|
282
282
|
actual: number;
|
|
283
283
|
expected: number;
|
|
284
284
|
message: string;
|
|
@@ -324,7 +324,7 @@ export declare const SyncAssertions: readonly [import("../assertion-types.js").A
|
|
|
324
324
|
message: string;
|
|
325
325
|
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to have size less than">, import("zod/v4").ZodInt]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>]>, "to have size between", import("zod/v4").ZodTuple<[import("zod/v4").ZodInt, import("zod/v4").ZodInt], null>], (collection: Map<unknown, unknown> | Set<unknown>, [min, max]: [number, number]) => {
|
|
326
326
|
message: string;
|
|
327
|
-
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to have size between">, import("zod/v4").ZodTuple<[import("zod/v4").ZodInt, import("zod/v4").ZodInt], null>]>, import("../assertion-types.js").
|
|
327
|
+
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodCustom<Map<unknown, unknown>, Map<unknown, unknown>>, import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to have size between">, import("zod/v4").ZodTuple<[import("zod/v4").ZodInt, import("zod/v4").ZodInt], null>]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be an array", "to be array"]], import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be an async function"], import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a bigint", "to be a BigInt"]], import("zod/v4").ZodBigInt, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a boolean", "to be boolean", "to be a bool"]], import("zod/v4").ZodBoolean, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a class", "to be a constructor", "to be constructible"]], import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a date", "to be a Date"]], import("zod/v4").ZodDate, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be defined"], import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>, never>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("zod/v4").ZodTuple<[import("zod/v4").ZodUnknown], import("zod/v4").ZodUnknown>, import("zod/v4").ZodObject<{
|
|
328
328
|
length: import("zod/v4").ZodNumber;
|
|
329
329
|
}, import("zod/v4/core").$loose>]>, "to be empty"], (subject: unknown[] | [unknown, ...unknown[]] | {
|
|
330
330
|
[x: string]: unknown;
|
|
@@ -335,9 +335,9 @@ export declare const SyncAssertions: readonly [import("../assertion-types.js").A
|
|
|
335
335
|
message: string;
|
|
336
336
|
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("zod/v4").ZodTuple<[import("zod/v4").ZodUnknown], import("zod/v4").ZodUnknown>, import("zod/v4").ZodObject<{
|
|
337
337
|
length: import("zod/v4").ZodNumber;
|
|
338
|
-
}, import("zod/v4/core").$loose>]>, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("../assertion-types.js").
|
|
338
|
+
}, import("zod/v4/core").$loose>]>, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [import("zod/v4").ZodRecord<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("zod/v4").ZodUnknown>, "to be empty"], import("zod/v4").ZodRecord<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("zod/v4").ZodUnknown>, readonly [import("zod/v4").ZodRecord<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [import("zod/v4").ZodString, "to be empty"], import("zod/v4").ZodString, readonly [import("zod/v4").ZodString, import("../assertion-types.js").PhraseLiteralSlot<"to be empty">]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be an Error", "to be a Error"]], import("zod/v4").ZodCustom<Error, Error>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be false"], import("zod/v4").ZodLiteral<false>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be falsy"], import("zod/v4").ZodNullable<import("zod/v4").ZodAny>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be a function"], import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be infinite"], import("zod/v4").ZodUnion<[import("zod/v4").ZodLiteral<number>, import("zod/v4").ZodLiteral<number>]>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be an integer", "to be a safe integer", "to be an int", "to be a safe int"]], import("zod/v4").ZodNumber, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be NaN"], import("zod/v4").ZodNaN, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be negative", "to be a negative number"]], import("zod/v4").ZodNumber, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be -Infinity"], import("zod/v4").ZodLiteral<number>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a negative integer", "to be a negative int"]], import("zod/v4").ZodNumber, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [import("zod/v4").ZodString, "to be non-empty"], import("zod/v4").ZodString, readonly [import("zod/v4").ZodString, import("../assertion-types.js").PhraseLiteralSlot<"to be non-empty">]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be null"], import("zod/v4").ZodNull, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a number", "to be finite"]], import("zod/v4").ZodNumber, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be an object"], import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be positive", "to be a positive number"]], import("zod/v4").ZodNumber, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be Infinity"], import("zod/v4").ZodLiteral<number>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a positive integer", "to be a positive int"]], import("zod/v4").ZodNumber, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be a primitive"], import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodBoolean, import("zod/v4").ZodBigInt, import("zod/v4").ZodSymbol, import("zod/v4").ZodNull, import("zod/v4").ZodUndefined]>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a record", "to be a plain object"]], import("zod/v4").ZodRecord<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("zod/v4").ZodUnknown>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a RegExp", "to be a regex", "to be a regexp"]], import("zod/v4").ZodCustom<RegExp, RegExp>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be a Set"], import("zod/v4").ZodCustom<Set<unknown>, Set<unknown>>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be a string"], import("zod/v4").ZodString, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a symbol", "to be a Symbol"]], import("zod/v4").ZodSymbol, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be true"], import("zod/v4").ZodLiteral<true>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be truthy", "to exist", "to be ok"]], import("zod/v4").ZodNonOptional<import("zod/v4").ZodAny>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be undefined"], import("zod/v4").ZodUndefined, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be a WeakMap"], import("zod/v4").ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>>, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be a WeakSet"], import("zod/v4").ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>>, never>, import("../assertion-types.js").AssertionFunctionSync<readonly [readonly ["to be an instance of", "to be a", "to be an"], import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (_: unknown, ctor: import("../../types.js").Constructor) => import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>, readonly [import("zod/v4").ZodUnknown, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to be an instance of", "to be a", "to be an"]>, import("zod/v4").ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodUnknown, readonly ["to be a", "to be an", "to have type"], import("zod/v4").ZodEnum<{
|
|
339
339
|
[x: string]: string;
|
|
340
|
-
}>], (_: unknown, type: string) => import("zod/v4").ZodString | import("zod/v4").ZodCustom<
|
|
340
|
+
}>], (_: unknown, type: string) => import("zod/v4").ZodString | import("zod/v4").ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown> | import("zod/v4").ZodNumber | import("zod/v4").ZodSymbol | import("zod/v4").ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>> | import("zod/v4").ZodBoolean | import("zod/v4").ZodBigInt | import("zod/v4").ZodNull | import("zod/v4").ZodUndefined | import("zod/v4").ZodArray<import("zod/v4").ZodUnknown> | import("zod/v4").ZodCustom<RegExp, RegExp> | import("zod/v4").ZodDate | import("zod/v4").ZodCustom<WeakSet<WeakKey>, WeakSet<WeakKey>> | import("zod/v4").ZodCustom<WeakMap<WeakKey, unknown>, WeakMap<WeakKey, unknown>> | import("zod/v4").ZodCustom<Error, Error> | import("zod/v4").ZodCustom<WeakRef<WeakKey>, WeakRef<WeakKey>> | import("zod/v4").ZodObject<{}, import("zod/v4/core").$loose>, readonly [import("zod/v4").ZodUnknown, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to be a", "to be an", "to have type"]>, import("zod/v4").ZodEnum<{
|
|
341
341
|
[x: string]: string;
|
|
342
342
|
}>]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNumber, "to be greater than", import("zod/v4").ZodNumber], (_: number, other: number) => import("zod/v4").ZodNumber, readonly [import("zod/v4").ZodNumber, import("../assertion-types.js").PhraseLiteralSlot<"to be greater than">, import("zod/v4").ZodNumber]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNumber, readonly ["to be less than", "to be lt"], import("zod/v4").ZodNumber], (_: number, other: number) => import("zod/v4").ZodNumber, readonly [import("zod/v4").ZodNumber, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to be less than", "to be lt"]>, import("zod/v4").ZodNumber]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNumber, readonly ["to be greater than or equal to", "to be at least", "to be gte"], import("zod/v4").ZodNumber], (_: number, other: number) => import("zod/v4").ZodNumber, readonly [import("zod/v4").ZodNumber, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to be greater than or equal to", "to be at least", "to be gte"]>, import("zod/v4").ZodNumber]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNumber, readonly ["to be less than or equal to", "to be at most", "to be lte"], import("zod/v4").ZodNumber], (_: number, other: number) => import("zod/v4").ZodNumber, readonly [import("zod/v4").ZodNumber, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to be less than or equal to", "to be at most", "to be lte"]>, import("zod/v4").ZodNumber]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNumber, readonly ["to be within", "to be between"], import("zod/v4").ZodNumber, import("zod/v4").ZodNumber], (subject: number, min: number, max: number) => {
|
|
343
343
|
message: string;
|
|
@@ -419,7 +419,7 @@ export declare const SyncAssertions: readonly [import("../assertion-types.js").A
|
|
|
419
419
|
length: number;
|
|
420
420
|
}, shape: unknown) => import("zod/v4").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodArray<import("zod/v4").ZodUnknown>, import("zod/v4").ZodTuple<[import("zod/v4").ZodUnknown], import("zod/v4").ZodUnknown>, import("zod/v4").ZodObject<{
|
|
421
421
|
length: import("zod/v4").ZodNumber;
|
|
422
|
-
}, import("zod/v4/core").$loose>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to satisfy", "to be like"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").
|
|
422
|
+
}, import("zod/v4/core").$loose>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to satisfy", "to be like"]>, import("zod/v4").ZodUnknown]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to have a null prototype", "to be a dictionary"]], import("zod/v4").ZodCustom<Record<PropertyKey, unknown>, Record<PropertyKey, unknown>>, never>, import("../assertion-types.js").AssertionFunctionSync<readonly ["to be frozen"], (subject: unknown) => {
|
|
423
423
|
actual: boolean;
|
|
424
424
|
expected: boolean;
|
|
425
425
|
message: string;
|
|
@@ -427,7 +427,7 @@ export declare const SyncAssertions: readonly [import("../assertion-types.js").A
|
|
|
427
427
|
actual: boolean;
|
|
428
428
|
expected: boolean;
|
|
429
429
|
message: string;
|
|
430
|
-
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("../assertion-types.js").PhraseLiteralSlot<"to be an enumerable property of">, import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>, "to have enumerable property", import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>], (_subject: unknown, key: string | number | symbol) => import("zod/v4").ZodCustom<unknown, unknown>, readonly [import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralSlot<"to have enumerable property">, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>]>, import("../assertion-types.js").
|
|
430
|
+
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>, import("../assertion-types.js").PhraseLiteralSlot<"to be an enumerable property of">, import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>]>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>, "to have enumerable property", import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>], (_subject: unknown, key: string | number | symbol) => import("zod/v4").ZodCustom<unknown, unknown>, readonly [import("zod/v4").ZodNonOptional<import("zod/v4").ZodUnknown>, import("../assertion-types.js").PhraseLiteralSlot<"to have enumerable property">, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodNumber, import("zod/v4").ZodSymbol]>]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be sealed"], import("zod/v4").ZodUnknown, never>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly ["to be extensible"], import("zod/v4").ZodUnknown, never>, import("../assertion-types.js").AssertionFunctionSync<readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodDate, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodISODateTime, import("zod/v4").ZodISODate]>, import("zod/v4").ZodNumber]>, "to be after", import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodDate, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodISODateTime, import("zod/v4").ZodISODate]>, import("zod/v4").ZodNumber]>], (subject: string | number | Date, other: string | number | Date) => {
|
|
431
431
|
message: string;
|
|
432
432
|
schema?: never;
|
|
433
433
|
subject?: never;
|
|
@@ -471,7 +471,7 @@ export declare const SyncAssertions: readonly [import("../assertion-types.js").A
|
|
|
471
471
|
actual: string;
|
|
472
472
|
expected: string;
|
|
473
473
|
message: string;
|
|
474
|
-
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodDate, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodISODateTime, import("zod/v4").ZodISODate]>, import("zod/v4").ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be the same date as">, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodDate, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodISODateTime, import("zod/v4").ZodISODate]>, import("zod/v4").ZodNumber]>]>, import("../assertion-types.js").
|
|
474
|
+
} | undefined, readonly [import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodDate, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodISODateTime, import("zod/v4").ZodISODate]>, import("zod/v4").ZodNumber]>, import("../assertion-types.js").PhraseLiteralSlot<"to be the same date as">, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodDate, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodISODateTime, import("zod/v4").ZodISODate]>, import("zod/v4").ZodNumber]>]>, import("../assertion-types.js").AssertionStandardSchemaSync<readonly [readonly ["to be a valid date", "to be date-like"]], import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodDate, import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodISODateTime, import("zod/v4").ZodISODate]>, import("zod/v4").ZodNumber]>, never>, import("../assertion-types.js").AssertionFunctionSync<readonly ["to be a weekday"], (subject: unknown) => {
|
|
475
475
|
message: string;
|
|
476
476
|
} | undefined, never>, import("../assertion-types.js").AssertionFunctionSync<readonly ["to be a weekend"], (subject: unknown) => {
|
|
477
477
|
message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/assertion/impl/sync.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AA2HH;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBASrB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/assertion/impl/sync.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AA2HH;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBASrB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;srCAOzB,CAAC;AAEX;;;;GAIG;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;80LAuCtB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kKA8B3B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kWA8B3B,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAMjB,CAAC;AAIX,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
|
|
@@ -71,19 +71,37 @@ const slotify = (parts) => {
|
|
|
71
71
|
result.push(createPhraseLiteralSchema(part));
|
|
72
72
|
}
|
|
73
73
|
else if (typeof part === 'string' && part === 'and') {
|
|
74
|
-
// Special case: "and" is allowed when followed by a
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
// Special case: "and" is allowed when followed by a schema (Zod or Standard Schema)
|
|
75
|
+
const nextPart = parts[index + 1];
|
|
76
|
+
if (index + 1 >= parts.length ||
|
|
77
|
+
!((0, guards_js_1.isZodType)(nextPart) || (0, guards_js_1.isStandardSchema)(nextPart))) {
|
|
78
|
+
throw new error_js_1.AssertionImplementationError(`"and" at parts[${index}] must be followed by a schema but was followed by ${index + 1 >= parts.length
|
|
77
79
|
? 'nothing'
|
|
78
|
-
: `${(0, util_1.inspect)(
|
|
80
|
+
: `${(0, util_1.inspect)(nextPart)} (${typeof nextPart})`}`);
|
|
79
81
|
}
|
|
80
82
|
result.push(createPhraseLiteralSchema(part));
|
|
81
83
|
}
|
|
82
84
|
else {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
// Schema parts: either Zod or Standard Schema
|
|
86
|
+
if ((0, guards_js_1.isZodType)(part)) {
|
|
87
|
+
result.push(part);
|
|
88
|
+
}
|
|
89
|
+
else if ((0, guards_js_1.isStandardSchema)(part)) {
|
|
90
|
+
// Convert Standard Schema to Zod schema for slotification
|
|
91
|
+
// Slots use Zod's safeParse, so we need a Zod wrapper
|
|
92
|
+
const zodWrapper = v4_1.z.custom((value) => {
|
|
93
|
+
const validationResult = part['~standard'].validate(value);
|
|
94
|
+
// Must be synchronous for slots
|
|
95
|
+
if (validationResult instanceof Promise) {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
return !validationResult.issues;
|
|
99
|
+
}, { error: `Failed Standard Schema validation` });
|
|
100
|
+
result.push(zodWrapper);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
throw new error_js_1.AssertionImplementationError(`Expected schema, phrase literal, or phrase literal choice at parts[${index}] but received ${(0, util_1.inspect)(part)} (${typeof part})`);
|
|
85
104
|
}
|
|
86
|
-
result.push(part);
|
|
87
105
|
}
|
|
88
106
|
return result;
|
|
89
107
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotify.js","sourceRoot":"","sources":["../../../src/assertion/slotify.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH,+BAA+B;AAC/B,+BAA2B;AAS3B,gDAAgD;AAChD,0CAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"slotify.js","sourceRoot":"","sources":["../../../src/assertion/slotify.ts"],"names":[],"mappings":"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"}
|