is-kit 1.1.5 → 1.1.6
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/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -271,7 +271,10 @@ function tupleOf(...guards) {
|
|
|
271
271
|
|
|
272
272
|
// src/core/combinators/one-of.ts
|
|
273
273
|
function oneOf(...guards) {
|
|
274
|
-
|
|
274
|
+
const predicates = toBooleanPredicates(
|
|
275
|
+
guards
|
|
276
|
+
);
|
|
277
|
+
return (input) => predicates.some((guard) => guard(input));
|
|
275
278
|
}
|
|
276
279
|
|
|
277
280
|
// src/core/combinators/record.ts
|
package/dist/index.mjs
CHANGED
|
@@ -192,7 +192,10 @@ function tupleOf(...guards) {
|
|
|
192
192
|
|
|
193
193
|
// src/core/combinators/one-of.ts
|
|
194
194
|
function oneOf(...guards) {
|
|
195
|
-
|
|
195
|
+
const predicates = toBooleanPredicates(
|
|
196
|
+
guards
|
|
197
|
+
);
|
|
198
|
+
return (input) => predicates.some((guard) => guard(input));
|
|
196
199
|
}
|
|
197
200
|
|
|
198
201
|
// src/core/combinators/record.ts
|