bupkis 0.18.1 → 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 +7 -0
- package/package.json +1 -4
- package/src/assertion/assertion-types.ts +4 -4
- package/src/assertion/impl/sync-parametric.ts +1 -1
- 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 -412
- 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 -409
- 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 -805
- 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 -802
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async-iterable.js","sourceRoot":"","sources":["../../../src/assertion/impl/async-iterable.ts"],"names":[],"mappings":";;;AAAA,gGAAgG;AAChG,qEAAqE;AACrE,qCAAqC;AACrC;;;;;;;;;;;;GAYG;AACH,yCAAoC;AACpC,6BAAwB;AAExB,gDAKyB;AACzB,kEAIkC;AAClC,6CAAoD;AACpD,4DAM6B;AAE7B,gFAAgF;AAChF,oDAAoD;AACpD,gFAAgF;AAEhF;;;;;;;;;;;;;;;;;;;GAmBG;AACU,QAAA,4BAA4B,GAAG,IAAA,gCAAoB,EAC9D;IACE,yCAA6B;IAC7B,CAAC,UAAU,EAAE,SAAS,EAAE,2BAA2B,CAAC;IACpD,yBAAa;CACd,EACD,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE;IAC1B,MAAM,QAAQ,GAAG,IAAA,mCAAe,EAAC,OAAsC,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,IAAA,kCAAa,EAAC,QAAQ,EAAE,qDAAgC,CAAC,CAAC;IACzE,IAAI,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACjC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,IAAI,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC;YACzC,OAAO,CAAC,mCAAmC;QAC7C,CAAC;QACD,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC/B,CAAC;IACD,OAAO;QACL,OAAO,EAAE,uDAAuD,IAAA,mBAAO,EAAC,QAAQ,CAAC,oBAAoB;KACtG,CAAC;AACJ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/B,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,MAAM,IAAA,qCAAiB,EAClD,OAAsC,CACvC,CAAC;IACF,IAAI,SAAS,EAAE,CAAC;QACd,OAAO;YACL,OAAO,EAAE,2DAA2D,IAAA,mBAAO,EAAC,aAAa,CAAC,iCAAiC;SAC5H,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,IAAA,kCAAa,EAC1B,aAAa,EACb,qDAAgC,CACjC,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC;QACrC,OAAO;YACL,OAAO,EAAE,2DAA2D,IAAA,mBAAO,EAAC,aAAa,CAAC,aAAa,IAAA,mBAAO,EAAC,KAAK,CAAC,EAAE;SACxH,CAAC;IACJ,CAAC;AACH,CAAC,CACF,CAAC;AAEJ,gFAAgF;AAChF,kDAAkD;AAClD,gFAAgF;AAEhF;;;GAGG;AACU,QAAA,uBAAuB,GAAG;IACrC,gCAAgC;IAChC,oCAA4B;IAC5B,gDAAwC;IAExC,0CAA0C;IAC1C,mDAA2C;IAC3C,qDAA6C;IAE7C,wBAAwB;IACxB,yCAAiC;IACjC,qDAA6C;IAC7C,wCAAgC;IAChC,oDAA4C;IAE5C,cAAc;IACd,yCAAiC;IACjC,2CAAmC;IACnC,0CAAkC;IAClC,mCAA2B;IAE3B,WAAW;IACX,2CAAmC;IACnC,sDAA8C;IAE9C,gCAAgC;IAChC,uCAA+B;IAC/B,qCAA6B;IAC7B,6CAAqC;IACrC,wDAAgD;CACxC,CAAC"}
|
|
@@ -1,406 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Asserts that an async 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
|
-
* await expectAsync(asyncGenerator(), 'to yield', 'value'); // passes
|
|
12
|
-
* await expectAsync(nodeReadable, 'to emit', 'chunk'); // passes
|
|
13
|
-
* await expectAsync(response.body, 'to yield value satisfying', {
|
|
14
|
-
* data: 'test',
|
|
15
|
-
* }); // Web Stream
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @group Async Iterable Assertions
|
|
19
|
-
* @bupkisAnchor async-iterable-to-yield-any
|
|
20
|
-
* @bupkisAssertionCategory iterable
|
|
21
|
-
*/
|
|
22
|
-
export declare const asyncIterableYieldsAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to yield", "to emit", "to yield value satisfying"], z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
23
|
-
message: string;
|
|
24
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield", "to emit", "to yield value satisfying"]>, z.ZodUnknown]>;
|
|
25
|
-
/**
|
|
26
|
-
* Asserts that an async iterable yields a value exhaustively matching the
|
|
27
|
-
* expected value.
|
|
28
|
-
*
|
|
29
|
-
* Uses deep equality semantics (like `'to equal'`). Extra properties on yielded
|
|
30
|
-
* values cause failure.
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
*
|
|
34
|
-
* ```ts
|
|
35
|
-
* await expectAsync(asyncGen(), 'to yield value exhaustively satisfying', {
|
|
36
|
-
* a: 1,
|
|
37
|
-
* }); // passes if { a: 1 } exactly is yielded
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @group Async Iterable Assertions
|
|
41
|
-
* @bupkisAnchor async-iterable-to-yield-value-exhaustively-satisfying-any
|
|
42
|
-
* @bupkisAssertionCategory iterable
|
|
43
|
-
*/
|
|
44
|
-
export declare const asyncIterableYieldsExhaustivelyAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield value exhaustively satisfying", z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
45
|
-
message: string;
|
|
46
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield value exhaustively satisfying">, z.ZodUnknown]>;
|
|
47
|
-
/**
|
|
48
|
-
* Asserts that ALL yielded values individually satisfy the expected shape.
|
|
49
|
-
*
|
|
50
|
-
* Uses partial/satisfy semantics. Every item yielded must match.
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
*
|
|
54
|
-
* ```ts
|
|
55
|
-
* await expectAsync(asyncGen(), 'to yield items satisfying', {
|
|
56
|
-
* type: 'data',
|
|
57
|
-
* });
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* @group Async Iterable Assertions
|
|
61
|
-
* @bupkisAnchor async-iterable-to-yield-items-satisfying-any
|
|
62
|
-
* @bupkisAssertionCategory iterable
|
|
63
|
-
*/
|
|
64
|
-
export declare const asyncIterableYieldsItemsSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield items satisfying", z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
65
|
-
message: string;
|
|
66
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, 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
|
-
* await expectAsync(asyncGen(), 'to yield items exhaustively satisfying', {
|
|
76
|
-
* a: 1,
|
|
77
|
-
* });
|
|
78
|
-
* ```
|
|
79
|
-
*
|
|
80
|
-
* @group Async Iterable Assertions
|
|
81
|
-
* @bupkisAnchor async-iterable-to-yield-items-exhaustively-satisfying-any
|
|
82
|
-
* @bupkisAssertionCategory iterable
|
|
83
|
-
*/
|
|
84
|
-
export declare const asyncIterableYieldsItemsExhaustivelyAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield items exhaustively satisfying", z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
85
|
-
message: string;
|
|
86
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield items exhaustively satisfying">, z.ZodUnknown]>;
|
|
87
|
-
/**
|
|
88
|
-
* Asserts that the first yielded value satisfies the expected shape.
|
|
89
|
-
*
|
|
90
|
-
* Uses partial/satisfy semantics.
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
*
|
|
94
|
-
* ```ts
|
|
95
|
-
* await expectAsync(asyncGen(), 'to yield first', { type: 'header' });
|
|
96
|
-
* ```
|
|
97
|
-
*
|
|
98
|
-
* @group Async Iterable Assertions
|
|
99
|
-
* @bupkisAnchor async-iterable-to-yield-first-any
|
|
100
|
-
* @bupkisAssertionCategory iterable
|
|
101
|
-
*/
|
|
102
|
-
export declare const asyncIterableYieldsFirstAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to yield first", "to yield first satisfying"], z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
103
|
-
message: string;
|
|
104
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield first", "to yield first satisfying"]>, z.ZodUnknown]>;
|
|
105
|
-
/**
|
|
106
|
-
* Asserts that the first yielded value exhaustively matches.
|
|
107
|
-
*
|
|
108
|
-
* Uses deep equality semantics.
|
|
109
|
-
*
|
|
110
|
-
* @example
|
|
111
|
-
*
|
|
112
|
-
* ```ts
|
|
113
|
-
* await expectAsync(asyncGen(), 'to yield first exhaustively satisfying', {
|
|
114
|
-
* a: 1,
|
|
115
|
-
* });
|
|
116
|
-
* ```
|
|
117
|
-
*
|
|
118
|
-
* @group Async Iterable Assertions
|
|
119
|
-
* @bupkisAnchor async-iterable-to-yield-first-exhaustively-satisfying-any
|
|
120
|
-
* @bupkisAssertionCategory iterable
|
|
121
|
-
*/
|
|
122
|
-
export declare const asyncIterableYieldsFirstExhaustivelyAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield first exhaustively satisfying", z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
123
|
-
message: string;
|
|
124
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield first exhaustively satisfying">, z.ZodUnknown]>;
|
|
125
|
-
/**
|
|
126
|
-
* Asserts that the last yielded value satisfies the expected shape.
|
|
127
|
-
*
|
|
128
|
-
* Uses partial/satisfy semantics. Note: fully consumes the async iterator.
|
|
129
|
-
*
|
|
130
|
-
* @example
|
|
131
|
-
*
|
|
132
|
-
* ```ts
|
|
133
|
-
* await expectAsync(asyncGen(), 'to yield last', { type: 'footer' });
|
|
134
|
-
* ```
|
|
135
|
-
*
|
|
136
|
-
* @group Async Iterable Assertions
|
|
137
|
-
* @bupkisAnchor async-iterable-to-yield-last-any
|
|
138
|
-
* @bupkisAssertionCategory iterable
|
|
139
|
-
*/
|
|
140
|
-
export declare const asyncIterableYieldsLastAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to yield last", "to yield last satisfying"], z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
141
|
-
message: string;
|
|
142
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield last", "to yield last satisfying"]>, z.ZodUnknown]>;
|
|
143
|
-
/**
|
|
144
|
-
* Asserts that the last yielded value exhaustively matches.
|
|
145
|
-
*
|
|
146
|
-
* Uses deep equality semantics. Note: fully consumes the async iterator.
|
|
147
|
-
*
|
|
148
|
-
* @example
|
|
149
|
-
*
|
|
150
|
-
* ```ts
|
|
151
|
-
* await expectAsync(asyncGen(), 'to yield last exhaustively satisfying', {
|
|
152
|
-
* b: 2,
|
|
153
|
-
* });
|
|
154
|
-
* ```
|
|
155
|
-
*
|
|
156
|
-
* @group Async Iterable Assertions
|
|
157
|
-
* @bupkisAnchor async-iterable-to-yield-last-exhaustively-satisfying-any
|
|
158
|
-
* @bupkisAssertionCategory iterable
|
|
159
|
-
*/
|
|
160
|
-
export declare const asyncIterableYieldsLastExhaustivelyAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield last exhaustively satisfying", z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
161
|
-
message: string;
|
|
162
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield last exhaustively satisfying">, z.ZodUnknown]>;
|
|
163
|
-
/**
|
|
164
|
-
* Asserts that an async iterable yields exactly the specified count of values.
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
*
|
|
168
|
-
* ```ts
|
|
169
|
-
* await expectAsync(asyncGen(), 'to yield count', 5);
|
|
170
|
-
* ```
|
|
171
|
-
*
|
|
172
|
-
* @group Async Iterable Assertions
|
|
173
|
-
* @bupkisAnchor async-iterable-to-yield-count-number
|
|
174
|
-
* @bupkisAssertionCategory iterable
|
|
175
|
-
*/
|
|
176
|
-
export declare const asyncIterableYieldsCountAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield count", z.ZodInt], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expectedCount: number) => Promise<{
|
|
177
|
-
actual: number;
|
|
178
|
-
expected: number;
|
|
179
|
-
message: string;
|
|
180
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield count">, z.ZodInt]>;
|
|
181
|
-
/**
|
|
182
|
-
* Asserts that an async iterable yields at least the specified count of values.
|
|
183
|
-
*
|
|
184
|
-
* @example
|
|
185
|
-
*
|
|
186
|
-
* ```ts
|
|
187
|
-
* await expectAsync(asyncGen(), 'to yield at least', 3);
|
|
188
|
-
* ```
|
|
189
|
-
*
|
|
190
|
-
* @group Async Iterable Assertions
|
|
191
|
-
* @bupkisAnchor async-iterable-to-yield-at-least-number
|
|
192
|
-
* @bupkisAssertionCategory iterable
|
|
193
|
-
*/
|
|
194
|
-
export declare const asyncIterableYieldsAtLeastAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield at least", z.ZodInt], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, minCount: number) => Promise<{
|
|
195
|
-
actual: number;
|
|
196
|
-
expected: string;
|
|
197
|
-
message: string;
|
|
198
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield at least">, z.ZodInt]>;
|
|
199
|
-
/**
|
|
200
|
-
* Asserts that an async iterable yields at most the specified count of values.
|
|
201
|
-
*
|
|
202
|
-
* @example
|
|
203
|
-
*
|
|
204
|
-
* ```ts
|
|
205
|
-
* await expectAsync(asyncGen(), 'to yield at most', 10);
|
|
206
|
-
* ```
|
|
207
|
-
*
|
|
208
|
-
* @group Async Iterable Assertions
|
|
209
|
-
* @bupkisAnchor async-iterable-to-yield-at-most-number
|
|
210
|
-
* @bupkisAssertionCategory iterable
|
|
211
|
-
*/
|
|
212
|
-
export declare const asyncIterableYieldsAtMostAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield at most", z.ZodInt], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, maxCount: number) => Promise<{
|
|
213
|
-
actual: number;
|
|
214
|
-
expected: string;
|
|
215
|
-
message: string;
|
|
216
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield at most">, z.ZodInt]>;
|
|
217
|
-
/**
|
|
218
|
-
* Asserts that an async iterable yields nothing (is empty).
|
|
219
|
-
*
|
|
220
|
-
* @remarks
|
|
221
|
-
* Use `'not to be an empty iterable'` or `'to yield at least', 1` for non-empty
|
|
222
|
-
* assertions.
|
|
223
|
-
* @example
|
|
224
|
-
*
|
|
225
|
-
* ```ts
|
|
226
|
-
* await expectAsync(emptyAsyncGen(), 'to be an empty iterable');
|
|
227
|
-
* ```
|
|
228
|
-
*
|
|
229
|
-
* @group Async Iterable Assertions
|
|
230
|
-
* @bupkisAnchor async-iterable-to-be-an-empty-iterable
|
|
231
|
-
* @bupkisAssertionCategory iterable
|
|
232
|
-
*/
|
|
233
|
-
export declare const asyncIterableEmptyAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to be an empty iterable"], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>) => Promise<{
|
|
234
|
-
message: string;
|
|
235
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to be an empty iterable">]>;
|
|
236
|
-
/**
|
|
237
|
-
* Asserts that an async iterable yields exactly the specified values in order.
|
|
238
|
-
*
|
|
239
|
-
* Uses deep equality semantics. The iterable must yield the exact same number
|
|
240
|
-
* of values in the exact same order.
|
|
241
|
-
*
|
|
242
|
-
* @example
|
|
243
|
-
*
|
|
244
|
-
* ```ts
|
|
245
|
-
* await expectAsync(asyncGen(), 'to yield exactly', [1, 2, 3]);
|
|
246
|
-
* ```
|
|
247
|
-
*
|
|
248
|
-
* @group Async Iterable Assertions
|
|
249
|
-
* @bupkisAnchor async-iterable-to-yield-exactly-array
|
|
250
|
-
* @bupkisAssertionCategory iterable
|
|
251
|
-
*/
|
|
252
|
-
export declare const asyncIterableYieldsExactlyAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield exactly", z.ZodArray<z.ZodUnknown>], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown[]) => Promise<{
|
|
253
|
-
schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
254
|
-
subject: unknown[];
|
|
255
|
-
}>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield exactly">, z.ZodArray<z.ZodUnknown>]>;
|
|
256
|
-
/**
|
|
257
|
-
* Asserts that an async iterable yields values that satisfy the expected
|
|
258
|
-
* sequence.
|
|
259
|
-
*
|
|
260
|
-
* Uses satisfy/partial matching semantics on the collected array.
|
|
261
|
-
*
|
|
262
|
-
* @example
|
|
263
|
-
*
|
|
264
|
-
* ```ts
|
|
265
|
-
* await expectAsync(asyncGen(), 'to yield sequence satisfying', [
|
|
266
|
-
* { type: 'start' },
|
|
267
|
-
* { type: 'end' },
|
|
268
|
-
* ]);
|
|
269
|
-
* ```
|
|
270
|
-
*
|
|
271
|
-
* @group Async Iterable Assertions
|
|
272
|
-
* @bupkisAnchor async-iterable-to-yield-sequence-satisfying-array
|
|
273
|
-
* @bupkisAssertionCategory iterable
|
|
274
|
-
*/
|
|
275
|
-
export declare const asyncIterableYieldsSequenceSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to yield sequence satisfying", "to yield array satisfying"], z.ZodArray<z.ZodUnknown>], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown[]) => Promise<{
|
|
276
|
-
schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
277
|
-
subject: unknown[];
|
|
278
|
-
}>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield sequence satisfying", "to yield array satisfying"]>, z.ZodArray<z.ZodUnknown>]>;
|
|
279
|
-
/**
|
|
280
|
-
* Asserts that an async iterable completes without throwing.
|
|
281
|
-
*
|
|
282
|
-
* Fully consumes the iterator and verifies no error is thrown during iteration.
|
|
283
|
-
*
|
|
284
|
-
* @example
|
|
285
|
-
*
|
|
286
|
-
* ```ts
|
|
287
|
-
* await expectAsync(asyncGenerator(), 'to complete'); // passes if no error
|
|
288
|
-
* await expectAsync(nodeReadable, 'to finish'); // passes if stream ends cleanly
|
|
289
|
-
* ```
|
|
290
|
-
*
|
|
291
|
-
* @group Async Iterable Assertions
|
|
292
|
-
* @bupkisAnchor async-iterable-to-complete
|
|
293
|
-
* @bupkisAssertionCategory iterable
|
|
294
|
-
*/
|
|
295
|
-
export declare const asyncIterableCompletesAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to complete", "to finish"]], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>) => Promise<{
|
|
296
|
-
message: string;
|
|
297
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to complete", "to finish"]>]>;
|
|
298
|
-
/**
|
|
299
|
-
* Asserts that an async iterable rejects during iteration.
|
|
300
|
-
*
|
|
301
|
-
* @example
|
|
302
|
-
*
|
|
303
|
-
* ```ts
|
|
304
|
-
* await expectAsync(failingStream, 'to reject'); // passes if iteration rejects
|
|
305
|
-
* await expectAsync(failingStream, 'to be rejected'); // alias
|
|
306
|
-
* ```
|
|
307
|
-
*
|
|
308
|
-
* @group Async Iterable Assertions
|
|
309
|
-
* @bupkisAnchor async-iterable-to-reject
|
|
310
|
-
* @bupkisAssertionCategory iterable
|
|
311
|
-
*/
|
|
312
|
-
export declare const asyncIterableRejectsAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to reject", "to be rejected"]], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>) => Promise<{
|
|
313
|
-
message: string;
|
|
314
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject", "to be rejected"]>]>;
|
|
315
|
-
/**
|
|
316
|
-
* Asserts that an async iterable rejects with a specific error type.
|
|
317
|
-
*
|
|
318
|
-
* @example
|
|
319
|
-
*
|
|
320
|
-
* ```ts
|
|
321
|
-
* await expectAsync(failingStream, 'to reject with a', TypeError);
|
|
322
|
-
* await expectAsync(failingStream, 'to reject with an', Error);
|
|
323
|
-
* ```
|
|
324
|
-
*
|
|
325
|
-
* @group Async Iterable Assertions
|
|
326
|
-
* @bupkisAnchor async-iterable-to-reject-with-a-constructor
|
|
327
|
-
* @bupkisAssertionCategory iterable
|
|
328
|
-
*/
|
|
329
|
-
export declare const asyncIterableRejectsWithTypeAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to reject with a", "to reject with an"], z.ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expectedType: import("../../types.js").Constructor) => Promise<{
|
|
330
|
-
message: string;
|
|
331
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, z.ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>;
|
|
332
|
-
/**
|
|
333
|
-
* Asserts that an async iterable rejects with an error satisfying a shape.
|
|
334
|
-
*
|
|
335
|
-
* @example
|
|
336
|
-
*
|
|
337
|
-
* ```ts
|
|
338
|
-
* await expectAsync(failingStream, 'to reject with error satisfying', {
|
|
339
|
-
* message: 'Connection failed',
|
|
340
|
-
* });
|
|
341
|
-
* await expectAsync(
|
|
342
|
-
* failingStream,
|
|
343
|
-
* 'to be rejected with error satisfying',
|
|
344
|
-
* {
|
|
345
|
-
* code: 'ECONNREFUSED',
|
|
346
|
-
* },
|
|
347
|
-
* );
|
|
348
|
-
* ```
|
|
349
|
-
*
|
|
350
|
-
* @group Async Iterable Assertions
|
|
351
|
-
* @bupkisAnchor async-iterable-to-reject-with-error-satisfying-any
|
|
352
|
-
* @bupkisAssertionCategory iterable
|
|
353
|
-
*/
|
|
354
|
-
export declare const asyncIterableRejectsWithErrorSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to reject with error satisfying", "to be rejected with error satisfying"], z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expectedShape: unknown) => Promise<{
|
|
355
|
-
message: string;
|
|
356
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying", "to be rejected with error satisfying"]>, z.ZodUnknown]>;
|
|
357
|
-
/**
|
|
358
|
-
* All asynchronous iterable assertions bundled as a tuple for convenient
|
|
359
|
-
* registration.
|
|
360
|
-
*/
|
|
361
|
-
export declare const AsyncIterableAssertions: readonly [import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to yield", "to emit", "to yield value satisfying"], z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
362
|
-
message: string;
|
|
363
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield", "to emit", "to yield value satisfying"]>, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield value exhaustively satisfying", z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
364
|
-
message: string;
|
|
365
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield value exhaustively satisfying">, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield items satisfying", z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
366
|
-
message: string;
|
|
367
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield items satisfying">, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield items exhaustively satisfying", z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
368
|
-
message: string;
|
|
369
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield items exhaustively satisfying">, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to yield first", "to yield first satisfying"], z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
370
|
-
message: string;
|
|
371
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield first", "to yield first satisfying"]>, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield first exhaustively satisfying", z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
372
|
-
message: string;
|
|
373
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield first exhaustively satisfying">, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to yield last", "to yield last satisfying"], z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
374
|
-
message: string;
|
|
375
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield last", "to yield last satisfying"]>, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield last exhaustively satisfying", z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown) => Promise<{
|
|
376
|
-
message: string;
|
|
377
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield last exhaustively satisfying">, z.ZodUnknown]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield count", z.ZodInt], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expectedCount: number) => Promise<{
|
|
378
|
-
actual: number;
|
|
379
|
-
expected: number;
|
|
380
|
-
message: string;
|
|
381
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield count">, z.ZodInt]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield at least", z.ZodInt], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, minCount: number) => Promise<{
|
|
382
|
-
actual: number;
|
|
383
|
-
expected: string;
|
|
384
|
-
message: string;
|
|
385
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield at least">, z.ZodInt]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield at most", z.ZodInt], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, maxCount: number) => Promise<{
|
|
386
|
-
actual: number;
|
|
387
|
-
expected: string;
|
|
388
|
-
message: string;
|
|
389
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield at most">, z.ZodInt]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to be an empty iterable"], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>) => Promise<{
|
|
390
|
-
message: string;
|
|
391
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to be an empty iterable">]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, "to yield exactly", z.ZodArray<z.ZodUnknown>], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown[]) => Promise<{
|
|
392
|
-
schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
393
|
-
subject: unknown[];
|
|
394
|
-
}>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralSlot<"to yield exactly">, z.ZodArray<z.ZodUnknown>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to yield sequence satisfying", "to yield array satisfying"], z.ZodArray<z.ZodUnknown>], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expected: unknown[]) => Promise<{
|
|
395
|
-
schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
396
|
-
subject: unknown[];
|
|
397
|
-
}>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to yield sequence satisfying", "to yield array satisfying"]>, z.ZodArray<z.ZodUnknown>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to complete", "to finish"]], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>) => Promise<{
|
|
398
|
-
message: string;
|
|
399
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to complete", "to finish"]>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to reject", "to be rejected"]], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>) => Promise<{
|
|
400
|
-
message: string;
|
|
401
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject", "to be rejected"]>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to reject with a", "to reject with an"], z.ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expectedType: import("../../types.js").Constructor) => Promise<{
|
|
402
|
-
message: string;
|
|
403
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, z.ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>, import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, readonly ["to reject with error satisfying", "to be rejected with error satisfying"], z.ZodUnknown], (subject: Iterable<unknown> | AsyncIterable<unknown> | AsyncIterator<unknown, any, any>, expectedShape: unknown) => Promise<{
|
|
404
|
-
message: string;
|
|
405
|
-
} | undefined>, readonly [z.ZodUnion<readonly [z.ZodCustom<AsyncIterable<unknown>, AsyncIterable<unknown>>, z.ZodCustom<AsyncIterator<unknown, any, any>, AsyncIterator<unknown, any, any>>, z.ZodCustom<Iterable<unknown>, Iterable<unknown>>]>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying", "to be rejected with error satisfying"]>, z.ZodUnknown]>];
|
|
406
|
-
//# sourceMappingURL=async-iterable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async-iterable.d.ts","sourceRoot":"","sources":["../../../src/assertion/impl/async-iterable.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0BxB;;;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