bupkis 0.18.0 → 0.18.2
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 +14 -0
- package/package.json +1 -4
- package/src/assertion/assertion-types.ts +4 -4
- package/src/assertion/impl/async-parametric.ts +4 -21
- package/src/assertion/impl/sync-parametric.ts +5 -17
- package/src/expect.ts +0 -4
- package/src/guards.ts +24 -24
- package/src/internal-schema.ts +16 -32
- package/src/value-to-schema.ts +1 -1
- package/dist/assertion/assertion-async.cjs +0 -268
- package/dist/assertion/assertion-async.cjs.map +0 -1
- package/dist/assertion/assertion-async.d.cts +0 -40
- package/dist/assertion/assertion-async.d.cts.map +0 -1
- package/dist/assertion/assertion-async.d.ts +0 -40
- package/dist/assertion/assertion-async.d.ts.map +0 -1
- package/dist/assertion/assertion-async.js +0 -259
- package/dist/assertion/assertion-async.js.map +0 -1
- package/dist/assertion/assertion-standard-schema-async.cjs +0 -132
- package/dist/assertion/assertion-standard-schema-async.cjs.map +0 -1
- package/dist/assertion/assertion-standard-schema-async.d.cts +0 -52
- package/dist/assertion/assertion-standard-schema-async.d.cts.map +0 -1
- package/dist/assertion/assertion-standard-schema-async.d.ts +0 -52
- package/dist/assertion/assertion-standard-schema-async.d.ts.map +0 -1
- package/dist/assertion/assertion-standard-schema-async.js +0 -128
- package/dist/assertion/assertion-standard-schema-async.js.map +0 -1
- package/dist/assertion/assertion-standard-schema-sync.cjs +0 -141
- package/dist/assertion/assertion-standard-schema-sync.cjs.map +0 -1
- package/dist/assertion/assertion-standard-schema-sync.d.cts +0 -52
- package/dist/assertion/assertion-standard-schema-sync.d.cts.map +0 -1
- package/dist/assertion/assertion-standard-schema-sync.d.ts +0 -52
- package/dist/assertion/assertion-standard-schema-sync.d.ts.map +0 -1
- package/dist/assertion/assertion-standard-schema-sync.js +0 -137
- package/dist/assertion/assertion-standard-schema-sync.js.map +0 -1
- package/dist/assertion/assertion-sync.cjs +0 -284
- package/dist/assertion/assertion-sync.cjs.map +0 -1
- package/dist/assertion/assertion-sync.d.cts +0 -60
- package/dist/assertion/assertion-sync.d.cts.map +0 -1
- package/dist/assertion/assertion-sync.d.ts +0 -60
- package/dist/assertion/assertion-sync.d.ts.map +0 -1
- package/dist/assertion/assertion-sync.js +0 -275
- package/dist/assertion/assertion-sync.js.map +0 -1
- package/dist/assertion/assertion-types.cjs +0 -20
- package/dist/assertion/assertion-types.cjs.map +0 -1
- package/dist/assertion/assertion-types.d.cts +0 -1086
- package/dist/assertion/assertion-types.d.cts.map +0 -1
- package/dist/assertion/assertion-types.d.ts +0 -1086
- package/dist/assertion/assertion-types.d.ts.map +0 -1
- package/dist/assertion/assertion-types.js +0 -19
- package/dist/assertion/assertion-types.js.map +0 -1
- package/dist/assertion/assertion.cjs +0 -382
- package/dist/assertion/assertion.cjs.map +0 -1
- package/dist/assertion/assertion.d.cts +0 -109
- package/dist/assertion/assertion.d.cts.map +0 -1
- package/dist/assertion/assertion.d.ts +0 -109
- package/dist/assertion/assertion.d.ts.map +0 -1
- package/dist/assertion/assertion.js +0 -375
- package/dist/assertion/assertion.js.map +0 -1
- package/dist/assertion/create.cjs +0 -148
- package/dist/assertion/create.cjs.map +0 -1
- package/dist/assertion/create.d.cts +0 -85
- package/dist/assertion/create.d.cts.map +0 -1
- package/dist/assertion/create.d.ts +0 -85
- package/dist/assertion/create.d.ts.map +0 -1
- package/dist/assertion/create.js +0 -143
- package/dist/assertion/create.js.map +0 -1
- package/dist/assertion/format-assertion-failure.cjs +0 -63
- package/dist/assertion/format-assertion-failure.cjs.map +0 -1
- package/dist/assertion/format-assertion-failure.d.cts +0 -21
- package/dist/assertion/format-assertion-failure.d.cts.map +0 -1
- package/dist/assertion/format-assertion-failure.d.ts +0 -21
- package/dist/assertion/format-assertion-failure.d.ts.map +0 -1
- package/dist/assertion/format-assertion-failure.js +0 -59
- package/dist/assertion/format-assertion-failure.js.map +0 -1
- package/dist/assertion/impl/assertion-util.cjs +0 -68
- package/dist/assertion/impl/assertion-util.cjs.map +0 -1
- package/dist/assertion/impl/assertion-util.d.cts +0 -36
- package/dist/assertion/impl/assertion-util.d.cts.map +0 -1
- package/dist/assertion/impl/assertion-util.d.ts +0 -36
- package/dist/assertion/impl/assertion-util.d.ts.map +0 -1
- package/dist/assertion/impl/assertion-util.js +0 -62
- package/dist/assertion/impl/assertion-util.js.map +0 -1
- package/dist/assertion/impl/async-iterable.cjs +0 -627
- package/dist/assertion/impl/async-iterable.cjs.map +0 -1
- package/dist/assertion/impl/async-iterable.d.cts +0 -406
- package/dist/assertion/impl/async-iterable.d.cts.map +0 -1
- package/dist/assertion/impl/async-iterable.d.ts +0 -406
- package/dist/assertion/impl/async-iterable.d.ts.map +0 -1
- package/dist/assertion/impl/async-iterable.js +0 -624
- package/dist/assertion/impl/async-iterable.js.map +0 -1
- package/dist/assertion/impl/async-parametric.cjs +0 -423
- package/dist/assertion/impl/async-parametric.cjs.map +0 -1
- package/dist/assertion/impl/async-parametric.d.cts +0 -278
- package/dist/assertion/impl/async-parametric.d.cts.map +0 -1
- package/dist/assertion/impl/async-parametric.d.ts +0 -278
- package/dist/assertion/impl/async-parametric.d.ts.map +0 -1
- package/dist/assertion/impl/async-parametric.js +0 -420
- package/dist/assertion/impl/async-parametric.js.map +0 -1
- package/dist/assertion/impl/async.cjs +0 -56
- package/dist/assertion/impl/async.cjs.map +0 -1
- package/dist/assertion/impl/async.d.cts +0 -179
- package/dist/assertion/impl/async.d.cts.map +0 -1
- package/dist/assertion/impl/async.d.ts +0 -179
- package/dist/assertion/impl/async.d.ts.map +0 -1
- package/dist/assertion/impl/async.js +0 -39
- package/dist/assertion/impl/async.js.map +0 -1
- package/dist/assertion/impl/index.cjs +0 -37
- package/dist/assertion/impl/index.cjs.map +0 -1
- package/dist/assertion/impl/index.d.cts +0 -21
- package/dist/assertion/impl/index.d.cts.map +0 -1
- package/dist/assertion/impl/index.d.ts +0 -21
- package/dist/assertion/impl/index.d.ts.map +0 -1
- package/dist/assertion/impl/index.js +0 -21
- package/dist/assertion/impl/index.js.map +0 -1
- package/dist/assertion/impl/iteration-util.cjs +0 -297
- package/dist/assertion/impl/iteration-util.cjs.map +0 -1
- package/dist/assertion/impl/iteration-util.d.cts +0 -12
- package/dist/assertion/impl/iteration-util.d.cts.map +0 -1
- package/dist/assertion/impl/iteration-util.d.ts +0 -12
- package/dist/assertion/impl/iteration-util.d.ts.map +0 -1
- package/dist/assertion/impl/iteration-util.js +0 -282
- package/dist/assertion/impl/iteration-util.js.map +0 -1
- package/dist/assertion/impl/snapshot.cjs +0 -276
- package/dist/assertion/impl/snapshot.cjs.map +0 -1
- package/dist/assertion/impl/snapshot.d.cts +0 -278
- package/dist/assertion/impl/snapshot.d.cts.map +0 -1
- package/dist/assertion/impl/snapshot.d.ts +0 -278
- package/dist/assertion/impl/snapshot.d.ts.map +0 -1
- package/dist/assertion/impl/snapshot.js +0 -273
- package/dist/assertion/impl/snapshot.js.map +0 -1
- package/dist/assertion/impl/sync-basic.cjs +0 -553
- package/dist/assertion/impl/sync-basic.cjs.map +0 -1
- package/dist/assertion/impl/sync-basic.d.cts +0 -528
- package/dist/assertion/impl/sync-basic.d.cts.map +0 -1
- package/dist/assertion/impl/sync-basic.d.ts +0 -528
- package/dist/assertion/impl/sync-basic.d.ts.map +0 -1
- package/dist/assertion/impl/sync-basic.js +0 -550
- package/dist/assertion/impl/sync-basic.js.map +0 -1
- package/dist/assertion/impl/sync-collection.cjs +0 -856
- package/dist/assertion/impl/sync-collection.cjs.map +0 -1
- package/dist/assertion/impl/sync-collection.d.cts +0 -607
- package/dist/assertion/impl/sync-collection.d.cts.map +0 -1
- package/dist/assertion/impl/sync-collection.d.ts +0 -607
- package/dist/assertion/impl/sync-collection.d.ts.map +0 -1
- package/dist/assertion/impl/sync-collection.js +0 -850
- package/dist/assertion/impl/sync-collection.js.map +0 -1
- package/dist/assertion/impl/sync-date.cjs +0 -341
- package/dist/assertion/impl/sync-date.cjs.map +0 -1
- package/dist/assertion/impl/sync-date.d.cts +0 -209
- package/dist/assertion/impl/sync-date.d.cts.map +0 -1
- package/dist/assertion/impl/sync-date.d.ts +0 -209
- package/dist/assertion/impl/sync-date.d.ts.map +0 -1
- package/dist/assertion/impl/sync-date.js +0 -338
- package/dist/assertion/impl/sync-date.js.map +0 -1
- package/dist/assertion/impl/sync-esoteric.cjs +0 -214
- package/dist/assertion/impl/sync-esoteric.cjs.map +0 -1
- package/dist/assertion/impl/sync-esoteric.d.cts +0 -191
- package/dist/assertion/impl/sync-esoteric.d.cts.map +0 -1
- package/dist/assertion/impl/sync-esoteric.d.ts +0 -191
- package/dist/assertion/impl/sync-esoteric.d.ts.map +0 -1
- package/dist/assertion/impl/sync-esoteric.js +0 -211
- package/dist/assertion/impl/sync-esoteric.js.map +0 -1
- package/dist/assertion/impl/sync-iterable.cjs +0 -512
- package/dist/assertion/impl/sync-iterable.cjs.map +0 -1
- package/dist/assertion/impl/sync-iterable.d.cts +0 -334
- package/dist/assertion/impl/sync-iterable.d.cts.map +0 -1
- package/dist/assertion/impl/sync-iterable.d.ts +0 -334
- package/dist/assertion/impl/sync-iterable.d.ts.map +0 -1
- package/dist/assertion/impl/sync-iterable.js +0 -509
- package/dist/assertion/impl/sync-iterable.js.map +0 -1
- package/dist/assertion/impl/sync-parametric.cjs +0 -812
- package/dist/assertion/impl/sync-parametric.cjs.map +0 -1
- package/dist/assertion/impl/sync-parametric.d.cts +0 -560
- package/dist/assertion/impl/sync-parametric.d.cts.map +0 -1
- package/dist/assertion/impl/sync-parametric.d.ts +0 -560
- package/dist/assertion/impl/sync-parametric.d.ts.map +0 -1
- package/dist/assertion/impl/sync-parametric.js +0 -809
- package/dist/assertion/impl/sync-parametric.js.map +0 -1
- package/dist/assertion/impl/sync.cjs +0 -214
- package/dist/assertion/impl/sync.cjs.map +0 -1
- package/dist/assertion/impl/sync.d.cts +0 -512
- package/dist/assertion/impl/sync.d.cts.map +0 -1
- package/dist/assertion/impl/sync.d.ts +0 -512
- package/dist/assertion/impl/sync.d.ts.map +0 -1
- package/dist/assertion/impl/sync.js +0 -197
- package/dist/assertion/impl/sync.js.map +0 -1
- package/dist/assertion/index.cjs +0 -38
- package/dist/assertion/index.cjs.map +0 -1
- package/dist/assertion/index.d.cts +0 -18
- package/dist/assertion/index.d.cts.map +0 -1
- package/dist/assertion/index.d.ts +0 -18
- package/dist/assertion/index.d.ts.map +0 -1
- package/dist/assertion/index.js +0 -17
- package/dist/assertion/index.js.map +0 -1
- package/dist/assertion/slotify.cjs +0 -165
- package/dist/assertion/slotify.cjs.map +0 -1
- package/dist/assertion/slotify.d.cts +0 -11
- package/dist/assertion/slotify.d.cts.map +0 -1
- package/dist/assertion/slotify.d.ts +0 -11
- package/dist/assertion/slotify.d.ts.map +0 -1
- package/dist/assertion/slotify.js +0 -161
- package/dist/assertion/slotify.js.map +0 -1
- package/dist/bootstrap.cjs +0 -43
- package/dist/bootstrap.cjs.map +0 -1
- package/dist/bootstrap.d.cts +0 -27
- package/dist/bootstrap.d.cts.map +0 -1
- package/dist/bootstrap.d.ts +0 -27
- package/dist/bootstrap.d.ts.map +0 -1
- package/dist/bootstrap.js +0 -40
- package/dist/bootstrap.js.map +0 -1
- package/dist/constant.cjs +0 -82
- package/dist/constant.cjs.map +0 -1
- package/dist/constant.d.cts +0 -69
- package/dist/constant.d.cts.map +0 -1
- package/dist/constant.d.ts +0 -69
- package/dist/constant.d.ts.map +0 -1
- package/dist/constant.js +0 -79
- package/dist/constant.js.map +0 -1
- package/dist/diff.cjs +0 -340
- package/dist/diff.cjs.map +0 -1
- package/dist/diff.d.cts +0 -51
- package/dist/diff.d.cts.map +0 -1
- package/dist/diff.d.ts +0 -51
- package/dist/diff.d.ts.map +0 -1
- package/dist/diff.js +0 -334
- package/dist/diff.js.map +0 -1
- package/dist/error.cjs +0 -204
- package/dist/error.cjs.map +0 -1
- package/dist/error.d.cts +0 -212
- package/dist/error.d.cts.map +0 -1
- package/dist/error.d.ts +0 -212
- package/dist/error.d.ts.map +0 -1
- package/dist/error.js +0 -191
- package/dist/error.js.map +0 -1
- package/dist/expect.cjs +0 -590
- package/dist/expect.cjs.map +0 -1
- package/dist/expect.d.cts +0 -138
- package/dist/expect.d.cts.map +0 -1
- package/dist/expect.d.ts +0 -138
- package/dist/expect.d.ts.map +0 -1
- package/dist/expect.js +0 -582
- package/dist/expect.js.map +0 -1
- package/dist/guards.cjs +0 -297
- package/dist/guards.cjs.map +0 -1
- package/dist/guards.d.cts +0 -231
- package/dist/guards.d.cts.map +0 -1
- package/dist/guards.d.ts +0 -231
- package/dist/guards.d.ts.map +0 -1
- package/dist/guards.js +0 -277
- package/dist/guards.js.map +0 -1
- package/dist/index.cjs +0 -111
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -448
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.ts +0 -448
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -71
- package/dist/index.js.map +0 -1
- package/dist/internal-schema.cjs +0 -253
- package/dist/internal-schema.cjs.map +0 -1
- package/dist/internal-schema.d.cts +0 -8
- package/dist/internal-schema.d.cts.map +0 -1
- package/dist/internal-schema.d.ts +0 -8
- package/dist/internal-schema.d.ts.map +0 -1
- package/dist/internal-schema.js +0 -248
- package/dist/internal-schema.js.map +0 -1
- package/dist/metadata.cjs +0 -57
- package/dist/metadata.cjs.map +0 -1
- package/dist/metadata.d.cts +0 -27
- package/dist/metadata.d.cts.map +0 -1
- package/dist/metadata.d.ts +0 -27
- package/dist/metadata.d.ts.map +0 -1
- package/dist/metadata.js +0 -54
- package/dist/metadata.js.map +0 -1
- package/dist/schema.cjs +0 -1522
- package/dist/schema.cjs.map +0 -1
- package/dist/schema.d.cts +0 -1196
- package/dist/schema.d.cts.map +0 -1
- package/dist/schema.d.ts +0 -1196
- package/dist/schema.d.ts.map +0 -1
- package/dist/schema.js +0 -1516
- package/dist/schema.js.map +0 -1
- package/dist/snapshot/adapter.cjs +0 -31
- package/dist/snapshot/adapter.cjs.map +0 -1
- package/dist/snapshot/adapter.d.cts +0 -258
- package/dist/snapshot/adapter.d.cts.map +0 -1
- package/dist/snapshot/adapter.d.ts +0 -258
- package/dist/snapshot/adapter.d.ts.map +0 -1
- package/dist/snapshot/adapter.js +0 -27
- package/dist/snapshot/adapter.js.map +0 -1
- package/dist/snapshot/adapters/fallback.cjs +0 -453
- package/dist/snapshot/adapters/fallback.cjs.map +0 -1
- package/dist/snapshot/adapters/fallback.d.cts +0 -185
- package/dist/snapshot/adapters/fallback.d.cts.map +0 -1
- package/dist/snapshot/adapters/fallback.d.ts +0 -185
- package/dist/snapshot/adapters/fallback.d.ts.map +0 -1
- package/dist/snapshot/adapters/fallback.js +0 -446
- package/dist/snapshot/adapters/fallback.js.map +0 -1
- package/dist/snapshot/adapters/node-test.cjs +0 -301
- package/dist/snapshot/adapters/node-test.cjs.map +0 -1
- package/dist/snapshot/adapters/node-test.d.cts +0 -131
- package/dist/snapshot/adapters/node-test.d.cts.map +0 -1
- package/dist/snapshot/adapters/node-test.d.ts +0 -131
- package/dist/snapshot/adapters/node-test.d.ts.map +0 -1
- package/dist/snapshot/adapters/node-test.js +0 -297
- package/dist/snapshot/adapters/node-test.js.map +0 -1
- package/dist/snapshot/index.cjs +0 -61
- package/dist/snapshot/index.cjs.map +0 -1
- package/dist/snapshot/index.d.cts +0 -40
- package/dist/snapshot/index.d.cts.map +0 -1
- package/dist/snapshot/index.d.ts +0 -40
- package/dist/snapshot/index.d.ts.map +0 -1
- package/dist/snapshot/index.js +0 -44
- package/dist/snapshot/index.js.map +0 -1
- package/dist/snapshot/node-version.cjs +0 -49
- package/dist/snapshot/node-version.cjs.map +0 -1
- package/dist/snapshot/node-version.d.cts +0 -34
- package/dist/snapshot/node-version.d.cts.map +0 -1
- package/dist/snapshot/node-version.d.ts +0 -34
- package/dist/snapshot/node-version.d.ts.map +0 -1
- package/dist/snapshot/node-version.js +0 -44
- package/dist/snapshot/node-version.js.map +0 -1
- package/dist/snapshot/select-adapter.cjs +0 -170
- package/dist/snapshot/select-adapter.cjs.map +0 -1
- package/dist/snapshot/select-adapter.d.cts +0 -128
- package/dist/snapshot/select-adapter.d.cts.map +0 -1
- package/dist/snapshot/select-adapter.d.ts +0 -128
- package/dist/snapshot/select-adapter.d.ts.map +0 -1
- package/dist/snapshot/select-adapter.js +0 -164
- package/dist/snapshot/select-adapter.js.map +0 -1
- package/dist/snapshot/serializer.cjs +0 -246
- package/dist/snapshot/serializer.cjs.map +0 -1
- package/dist/snapshot/serializer.d.cts +0 -126
- package/dist/snapshot/serializer.d.cts.map +0 -1
- package/dist/snapshot/serializer.d.ts +0 -126
- package/dist/snapshot/serializer.d.ts.map +0 -1
- package/dist/snapshot/serializer.js +0 -238
- package/dist/snapshot/serializer.js.map +0 -1
- package/dist/standard-schema.cjs +0 -13
- package/dist/standard-schema.cjs.map +0 -1
- package/dist/standard-schema.d.cts +0 -192
- package/dist/standard-schema.d.cts.map +0 -1
- package/dist/standard-schema.d.ts +0 -192
- package/dist/standard-schema.d.ts.map +0 -1
- package/dist/standard-schema.js +0 -12
- package/dist/standard-schema.js.map +0 -1
- package/dist/types.cjs +0 -22
- package/dist/types.cjs.map +0 -1
- package/dist/types.d.cts +0 -905
- package/dist/types.d.cts.map +0 -1
- package/dist/types.d.ts +0 -905
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -21
- package/dist/types.js.map +0 -1
- package/dist/use.cjs +0 -240
- package/dist/use.cjs.map +0 -1
- package/dist/use.d.cts +0 -8
- package/dist/use.d.cts.map +0 -1
- package/dist/use.d.ts +0 -8
- package/dist/use.d.ts.map +0 -1
- package/dist/use.js +0 -236
- package/dist/use.js.map +0 -1
- package/dist/util.cjs +0 -255
- package/dist/util.cjs.map +0 -1
- package/dist/util.d.cts +0 -141
- package/dist/util.d.cts.map +0 -1
- package/dist/util.d.ts +0 -141
- package/dist/util.d.ts.map +0 -1
- package/dist/util.js +0 -234
- package/dist/util.js.map +0 -1
- package/dist/value-to-schema.cjs +0 -537
- package/dist/value-to-schema.cjs.map +0 -1
- package/dist/value-to-schema.d.cts +0 -144
- package/dist/value-to-schema.d.cts.map +0 -1
- package/dist/value-to-schema.d.ts +0 -144
- package/dist/value-to-schema.d.ts.map +0 -1
- package/dist/value-to-schema.js +0 -533
- package/dist/value-to-schema.js.map +0 -1
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Asserts that an iterable yields a value satisfying the expected shape.
|
|
4
|
-
*
|
|
5
|
-
* Uses partial/satisfy semantics (like `'to satisfy'`). The assertion passes if
|
|
6
|
-
* ANY yielded value matches the expected shape.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
*
|
|
10
|
-
* ```ts
|
|
11
|
-
* expect([{ a: 1, b: 2 }], 'to yield', { a: 1 }); // passes (partial match)
|
|
12
|
-
* expect([1, 2, 3], 'to emit', 2); // passes
|
|
13
|
-
* expect(myGenerator(), 'to yield value satisfying', { name: 'test' }); // passes
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @group Sync Iterable Assertions
|
|
17
|
-
* @bupkisAnchor iterable-to-yield-any
|
|
18
|
-
* @bupkisAssertionCategory iterable
|
|
19
|
-
*/
|
|
20
|
-
export declare const iterableYieldsAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, readonly ["to yield", "to emit", "to yield value satisfying"], z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
21
|
-
message: string;
|
|
22
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield", "to emit", "to yield value satisfying"]>, z.ZodUnknown]>;
|
|
23
|
-
/**
|
|
24
|
-
* Asserts that an iterable yields a value exhaustively matching the expected
|
|
25
|
-
* value.
|
|
26
|
-
*
|
|
27
|
-
* Uses deep equality semantics (like `'to equal'`). Extra properties on yielded
|
|
28
|
-
* values cause failure.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
*
|
|
32
|
-
* ```ts
|
|
33
|
-
* expect([{ a: 1 }], 'to yield value exhaustively satisfying', { a: 1 }); // passes
|
|
34
|
-
* expect([{ a: 1, b: 2 }], 'to yield value exhaustively satisfying', {
|
|
35
|
-
* a: 1,
|
|
36
|
-
* }); // fails (extra prop)
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @group Sync Iterable Assertions
|
|
40
|
-
* @bupkisAnchor iterable-to-yield-value-exhaustively-satisfying-any
|
|
41
|
-
* @bupkisAssertionCategory iterable
|
|
42
|
-
*/
|
|
43
|
-
export declare const iterableYieldsExhaustivelyAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield value exhaustively satisfying", z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
44
|
-
message: string;
|
|
45
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield value exhaustively satisfying">, z.ZodUnknown]>;
|
|
46
|
-
/**
|
|
47
|
-
* Asserts that ALL yielded values individually satisfy the expected shape.
|
|
48
|
-
*
|
|
49
|
-
* Uses partial/satisfy semantics. Every item yielded must match.
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
*
|
|
53
|
-
* ```ts
|
|
54
|
-
* expect([{ a: 1 }, { a: 2, b: 3 }], 'to yield items satisfying', {
|
|
55
|
-
* a: z.number(),
|
|
56
|
-
* }); // passes
|
|
57
|
-
* expect([1, 2, 3], 'to yield items satisfying', z.number()); // passes
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* @group Sync Iterable Assertions
|
|
61
|
-
* @bupkisAnchor iterable-to-yield-items-satisfying-any
|
|
62
|
-
* @bupkisAssertionCategory iterable
|
|
63
|
-
*/
|
|
64
|
-
export declare const iterableYieldsItemsSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield items satisfying", z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
65
|
-
message: string;
|
|
66
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield items satisfying">, z.ZodUnknown]>;
|
|
67
|
-
/**
|
|
68
|
-
* Asserts that ALL yielded values individually match with deep equality.
|
|
69
|
-
*
|
|
70
|
-
* Uses strict equality semantics. Every item yielded must exactly match.
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
*
|
|
74
|
-
* ```ts
|
|
75
|
-
* expect([{ a: 1 }, { a: 1 }], 'to yield items exhaustively satisfying', {
|
|
76
|
-
* a: 1,
|
|
77
|
-
* }); // passes
|
|
78
|
-
* expect([{ a: 1, b: 2 }], 'to yield items exhaustively satisfying', {
|
|
79
|
-
* a: 1,
|
|
80
|
-
* }); // fails
|
|
81
|
-
* ```
|
|
82
|
-
*
|
|
83
|
-
* @group Sync Iterable Assertions
|
|
84
|
-
* @bupkisAnchor iterable-to-yield-items-exhaustively-satisfying-any
|
|
85
|
-
* @bupkisAssertionCategory iterable
|
|
86
|
-
*/
|
|
87
|
-
export declare const iterableYieldsItemsExhaustivelyAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield items exhaustively satisfying", z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
88
|
-
message: string;
|
|
89
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield items exhaustively satisfying">, z.ZodUnknown]>;
|
|
90
|
-
/**
|
|
91
|
-
* Asserts that the first yielded value satisfies the expected shape.
|
|
92
|
-
*
|
|
93
|
-
* Uses partial/satisfy semantics.
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
*
|
|
97
|
-
* ```ts
|
|
98
|
-
* expect([{ a: 1, b: 2 }, { c: 3 }], 'to yield first', { a: 1 }); // passes
|
|
99
|
-
* expect([1, 2, 3], 'to yield first satisfying', 1); // passes
|
|
100
|
-
* ```
|
|
101
|
-
*
|
|
102
|
-
* @group Sync Iterable Assertions
|
|
103
|
-
* @bupkisAnchor iterable-to-yield-first-any
|
|
104
|
-
* @bupkisAssertionCategory iterable
|
|
105
|
-
*/
|
|
106
|
-
export declare const iterableYieldsFirstAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, readonly ["to yield first", "to yield first satisfying"], z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
107
|
-
message: string;
|
|
108
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield first", "to yield first satisfying"]>, z.ZodUnknown]>;
|
|
109
|
-
/**
|
|
110
|
-
* Asserts that the first yielded value exhaustively matches.
|
|
111
|
-
*
|
|
112
|
-
* Uses deep equality semantics.
|
|
113
|
-
*
|
|
114
|
-
* @example
|
|
115
|
-
*
|
|
116
|
-
* ```ts
|
|
117
|
-
* expect([{ a: 1 }], 'to yield first exhaustively satisfying', { a: 1 }); // passes
|
|
118
|
-
* expect([{ a: 1, b: 2 }], 'to yield first exhaustively satisfying', {
|
|
119
|
-
* a: 1,
|
|
120
|
-
* }); // fails
|
|
121
|
-
* ```
|
|
122
|
-
*
|
|
123
|
-
* @group Sync Iterable Assertions
|
|
124
|
-
* @bupkisAnchor iterable-to-yield-first-exhaustively-satisfying-any
|
|
125
|
-
* @bupkisAssertionCategory iterable
|
|
126
|
-
*/
|
|
127
|
-
export declare const iterableYieldsFirstExhaustivelyAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield first exhaustively satisfying", z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
128
|
-
message: string;
|
|
129
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield first exhaustively satisfying">, z.ZodUnknown]>;
|
|
130
|
-
/**
|
|
131
|
-
* Asserts that the last yielded value satisfies the expected shape.
|
|
132
|
-
*
|
|
133
|
-
* Uses partial/satisfy semantics. Note: fully consumes the iterator.
|
|
134
|
-
*
|
|
135
|
-
* @example
|
|
136
|
-
*
|
|
137
|
-
* ```ts
|
|
138
|
-
* expect([{ a: 1 }, { b: 2, c: 3 }], 'to yield last', { b: 2 }); // passes
|
|
139
|
-
* expect([1, 2, 3], 'to yield last satisfying', 3); // passes
|
|
140
|
-
* ```
|
|
141
|
-
*
|
|
142
|
-
* @group Sync Iterable Assertions
|
|
143
|
-
* @bupkisAnchor iterable-to-yield-last-any
|
|
144
|
-
* @bupkisAssertionCategory iterable
|
|
145
|
-
*/
|
|
146
|
-
export declare const iterableYieldsLastAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, readonly ["to yield last", "to yield last satisfying"], z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
147
|
-
message: string;
|
|
148
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield last", "to yield last satisfying"]>, z.ZodUnknown]>;
|
|
149
|
-
/**
|
|
150
|
-
* Asserts that the last yielded value exhaustively matches.
|
|
151
|
-
*
|
|
152
|
-
* Uses deep equality semantics. Note: fully consumes the iterator.
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
*
|
|
156
|
-
* ```ts
|
|
157
|
-
* expect([{ a: 1 }, { b: 2 }], 'to yield last exhaustively satisfying', {
|
|
158
|
-
* b: 2,
|
|
159
|
-
* }); // passes
|
|
160
|
-
* expect(
|
|
161
|
-
* [{ a: 1, extra: true }],
|
|
162
|
-
* 'to yield last exhaustively satisfying',
|
|
163
|
-
* { a: 1 },
|
|
164
|
-
* ); // fails
|
|
165
|
-
* ```
|
|
166
|
-
*
|
|
167
|
-
* @group Sync Iterable Assertions
|
|
168
|
-
* @bupkisAnchor iterable-to-yield-last-exhaustively-satisfying-any
|
|
169
|
-
* @bupkisAssertionCategory iterable
|
|
170
|
-
*/
|
|
171
|
-
export declare const iterableYieldsLastExhaustivelyAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield last exhaustively satisfying", z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
172
|
-
message: string;
|
|
173
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield last exhaustively satisfying">, z.ZodUnknown]>;
|
|
174
|
-
/**
|
|
175
|
-
* Asserts that an iterable yields exactly the specified count of values.
|
|
176
|
-
*
|
|
177
|
-
* @example
|
|
178
|
-
*
|
|
179
|
-
* ```ts
|
|
180
|
-
* expect([1, 2, 3], 'to yield count', 3); // passes
|
|
181
|
-
* expect(new Set([1, 2]), 'to yield count', 2); // passes
|
|
182
|
-
* ```
|
|
183
|
-
*
|
|
184
|
-
* @group Sync Iterable Assertions
|
|
185
|
-
* @bupkisAnchor iterable-to-yield-count-number
|
|
186
|
-
* @bupkisAssertionCategory iterable
|
|
187
|
-
*/
|
|
188
|
-
export declare const iterableYieldsCountAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield count", z.ZodInt], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expectedCount: number) => {
|
|
189
|
-
actual: number;
|
|
190
|
-
expected: number;
|
|
191
|
-
message: string;
|
|
192
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield count">, z.ZodInt]>;
|
|
193
|
-
/**
|
|
194
|
-
* Asserts that an iterable yields at least the specified count of values.
|
|
195
|
-
*
|
|
196
|
-
* @example
|
|
197
|
-
*
|
|
198
|
-
* ```ts
|
|
199
|
-
* expect([1, 2, 3], 'to yield at least', 2); // passes
|
|
200
|
-
* expect([1], 'to yield at least', 2); // fails
|
|
201
|
-
* ```
|
|
202
|
-
*
|
|
203
|
-
* @group Sync Iterable Assertions
|
|
204
|
-
* @bupkisAnchor iterable-to-yield-at-least-number
|
|
205
|
-
* @bupkisAssertionCategory iterable
|
|
206
|
-
*/
|
|
207
|
-
export declare const iterableYieldsAtLeastAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield at least", z.ZodInt], (subject: Iterator<unknown, any, any> | Iterable<unknown>, minCount: number) => {
|
|
208
|
-
actual: number;
|
|
209
|
-
expected: string;
|
|
210
|
-
message: string;
|
|
211
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield at least">, z.ZodInt]>;
|
|
212
|
-
/**
|
|
213
|
-
* Asserts that an iterable yields at most the specified count of values.
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
*
|
|
217
|
-
* ```ts
|
|
218
|
-
* expect([1, 2], 'to yield at most', 3); // passes
|
|
219
|
-
* expect([1, 2, 3, 4], 'to yield at most', 3); // fails
|
|
220
|
-
* ```
|
|
221
|
-
*
|
|
222
|
-
* @group Sync Iterable Assertions
|
|
223
|
-
* @bupkisAnchor iterable-to-yield-at-most-number
|
|
224
|
-
* @bupkisAssertionCategory iterable
|
|
225
|
-
*/
|
|
226
|
-
export declare const iterableYieldsAtMostAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield at most", z.ZodInt], (subject: Iterator<unknown, any, any> | Iterable<unknown>, maxCount: number) => {
|
|
227
|
-
actual: number;
|
|
228
|
-
expected: string;
|
|
229
|
-
message: string;
|
|
230
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield at most">, z.ZodInt]>;
|
|
231
|
-
/**
|
|
232
|
-
* Asserts that an iterable yields nothing (is empty).
|
|
233
|
-
*
|
|
234
|
-
* @remarks
|
|
235
|
-
* Use `'not to be an empty iterable'` or `'to yield at least', 1` for non-empty
|
|
236
|
-
* assertions.
|
|
237
|
-
* @example
|
|
238
|
-
*
|
|
239
|
-
* ```ts
|
|
240
|
-
* expect([], 'to be an empty iterable'); // passes
|
|
241
|
-
* expect(new Set(), 'to be an empty iterable'); // passes
|
|
242
|
-
* expect([1], 'to be an empty iterable'); // fails
|
|
243
|
-
* ```
|
|
244
|
-
*
|
|
245
|
-
* @group Sync Iterable Assertions
|
|
246
|
-
* @bupkisAnchor iterable-to-be-an-empty-iterable
|
|
247
|
-
* @bupkisAssertionCategory iterable
|
|
248
|
-
*/
|
|
249
|
-
export declare const iterableEmptyAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to be an empty iterable"], (subject: Iterator<unknown, any, any> | Iterable<unknown>) => {
|
|
250
|
-
message: string;
|
|
251
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to be an empty iterable">]>;
|
|
252
|
-
/**
|
|
253
|
-
* Asserts that an iterable yields exactly the specified values in order.
|
|
254
|
-
*
|
|
255
|
-
* Uses deep equality semantics. The iterable must yield the exact same number
|
|
256
|
-
* of values in the exact same order.
|
|
257
|
-
*
|
|
258
|
-
* @example
|
|
259
|
-
*
|
|
260
|
-
* ```ts
|
|
261
|
-
* expect([1, 2, 3], 'to yield exactly', [1, 2, 3]); // passes
|
|
262
|
-
* expect([{ a: 1, b: 2 }], 'to yield exactly', [{ a: 1 }]); // fails (extra prop)
|
|
263
|
-
* ```
|
|
264
|
-
*
|
|
265
|
-
* @group Sync Iterable Assertions
|
|
266
|
-
* @bupkisAnchor iterable-to-yield-exactly-array
|
|
267
|
-
* @bupkisAssertionCategory iterable
|
|
268
|
-
*/
|
|
269
|
-
export declare const iterableYieldsExactlyAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield exactly", z.ZodArray<z.ZodUnknown>], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown[]) => {
|
|
270
|
-
schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
271
|
-
subject: unknown[];
|
|
272
|
-
}, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield exactly">, z.ZodArray<z.ZodUnknown>]>;
|
|
273
|
-
/**
|
|
274
|
-
* Asserts that an iterable yields values that satisfy the expected sequence.
|
|
275
|
-
*
|
|
276
|
-
* Uses satisfy/partial matching semantics on the collected array.
|
|
277
|
-
*
|
|
278
|
-
* @example
|
|
279
|
-
*
|
|
280
|
-
* ```ts
|
|
281
|
-
* expect([{ a: 1, b: 2 }], 'to yield sequence satisfying', [{ a: 1 }]); // passes
|
|
282
|
-
* expect([1, 2, 3], 'to yield array satisfying', [1, 2, 3]); // passes
|
|
283
|
-
* ```
|
|
284
|
-
*
|
|
285
|
-
* @group Sync Iterable Assertions
|
|
286
|
-
* @bupkisAnchor iterable-to-yield-sequence-satisfying-array
|
|
287
|
-
* @bupkisAssertionCategory iterable
|
|
288
|
-
*/
|
|
289
|
-
export declare const iterableYieldsSequenceSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, readonly ["to yield sequence satisfying", "to yield array satisfying"], z.ZodArray<z.ZodUnknown>], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown[]) => {
|
|
290
|
-
schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
291
|
-
subject: unknown[];
|
|
292
|
-
}, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield sequence satisfying", "to yield array satisfying"]>, z.ZodArray<z.ZodUnknown>]>;
|
|
293
|
-
/**
|
|
294
|
-
* All synchronous iterable assertions bundled as a tuple for convenient
|
|
295
|
-
* registration.
|
|
296
|
-
*/
|
|
297
|
-
export declare const SyncIterableAssertions: readonly [import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, readonly ["to yield", "to emit", "to yield value satisfying"], z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
298
|
-
message: string;
|
|
299
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield", "to emit", "to yield value satisfying"]>, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield value exhaustively satisfying", z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
300
|
-
message: string;
|
|
301
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield value exhaustively satisfying">, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield items satisfying", z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
302
|
-
message: string;
|
|
303
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield items satisfying">, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield items exhaustively satisfying", z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
304
|
-
message: string;
|
|
305
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield items exhaustively satisfying">, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, readonly ["to yield first", "to yield first satisfying"], z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
306
|
-
message: string;
|
|
307
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield first", "to yield first satisfying"]>, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield first exhaustively satisfying", z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
308
|
-
message: string;
|
|
309
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield first exhaustively satisfying">, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, readonly ["to yield last", "to yield last satisfying"], z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
310
|
-
message: string;
|
|
311
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield last", "to yield last satisfying"]>, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield last exhaustively satisfying", z.ZodUnknown], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown) => {
|
|
312
|
-
message: string;
|
|
313
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield last exhaustively satisfying">, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield count", z.ZodInt], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expectedCount: number) => {
|
|
314
|
-
actual: number;
|
|
315
|
-
expected: number;
|
|
316
|
-
message: string;
|
|
317
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield count">, z.ZodInt]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield at least", z.ZodInt], (subject: Iterator<unknown, any, any> | Iterable<unknown>, minCount: number) => {
|
|
318
|
-
actual: number;
|
|
319
|
-
expected: string;
|
|
320
|
-
message: string;
|
|
321
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield at least">, z.ZodInt]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield at most", z.ZodInt], (subject: Iterator<unknown, any, any> | Iterable<unknown>, maxCount: number) => {
|
|
322
|
-
actual: number;
|
|
323
|
-
expected: string;
|
|
324
|
-
message: string;
|
|
325
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield at most">, z.ZodInt]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to be an empty iterable"], (subject: Iterator<unknown, any, any> | Iterable<unknown>) => {
|
|
326
|
-
message: string;
|
|
327
|
-
} | undefined, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to be an empty iterable">]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, "to yield exactly", z.ZodArray<z.ZodUnknown>], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown[]) => {
|
|
328
|
-
schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
329
|
-
subject: unknown[];
|
|
330
|
-
}, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield exactly">, z.ZodArray<z.ZodUnknown>]>, import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, readonly ["to yield sequence satisfying", "to yield array satisfying"], z.ZodArray<z.ZodUnknown>], (subject: Iterator<unknown, any, any> | Iterable<unknown>, expected: unknown[]) => {
|
|
331
|
-
schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
332
|
-
subject: unknown[];
|
|
333
|
-
}, readonly [z.ZodUnion<readonly [z.ZodCustom<Iterable<unknown>, Iterable<unknown>>, z.ZodCustom<Iterator<unknown, any, any>, Iterator<unknown, any, any>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield sequence satisfying", "to yield array satisfying"]>, z.ZodArray<z.ZodUnknown>]>];
|
|
334
|
-
//# sourceMappingURL=sync-iterable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync-iterable.d.ts","sourceRoot":"","sources":["../../../src/assertion/impl/sync-iterable.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,uBAAuB;;gTAoBnC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,mCAAmC;;qRAoB/C,CAAC;AAMF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,sCAAsC;;wQAmBlD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wCAAwC;;qRAsBpD,CAAC;AAMF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,4BAA4B;;2SAuBxC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wCAAwC;;qRAsBpD,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B;;ySAqBvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,uCAAuC;;oRAqBnD,CAAC;AAMF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,4BAA4B;;;;yPAYxC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,8BAA8B;;;;4PAY1C,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,6BAA6B;;;;2PAYzC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,sBAAsB;;wPAWlC,CAAC;AAMF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,8BAA8B;;;+PAO1C,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yCAAyC;;;yTAWrD,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0TAwBzB,CAAC"}
|