@fp51/foldable-helpers
Advanced tools
Comparing version 1.0.0-canary-31a721ab6c217486b1718b87b354f9082bad3ef7-1645668641396 to 1.0.0-canary-323bb819f8fcf74a71b1572a948bc843b60231bb-1655777936653
@@ -1,1 +0,1 @@ | ||
import{__read as r}from"tslib";import{z as n,p as t,f as o,a as u,b as f}from"./pipeable-6470c549.js";function a(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return function(i){var c=n(a,e);return t(c,o((function(n){return(0,r(n,1)[0])(i)})),u((function(){return new Error("No guard found to fold ".concat(i))})),f((function(r){throw r}),(function(n){var t=r(n,2);return t[0],(0,t[1])(i)})))}}return i}export{a as createFold}; | ||
import{__read as r}from"tslib";import{z as n,p as t,f as o,a as u,b as a}from"./pipeable-649419ca.js";function f(){for(var f=[],e=0;e<arguments.length;e++)f[e]=arguments[e];function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return function(i){var c=n(f,e);return t(c,a((function(n){return(0,r(n,1)[0])(i)})),u((function(){return new Error("No guard found to fold ".concat(i))})),o((function(r){throw r}),(function(n){var t=r(n,2);return t[0],(0,t[1])(i)})))}}return i}export{f as createFold}; |
@@ -1,1 +0,1 @@ | ||
import{p as n,f as r,a as t,b as o}from"./pipeable-6470c549.js";function u(u){return function(e){return function(c){var f=Object.keys(u);return n(f,r((function(n){return u[n](c)})),t((function(){return new Error("No guard found to fold ".concat(c))})),o((function(n){throw n}),(function(n){return e[n](c)})))}}}export{u as createFoldObject}; | ||
import{p as n,f as r,a as t,b as o}from"./pipeable-649419ca.js";function u(u){return function(e){return function(c){var f=Object.keys(u);return n(f,o((function(n){return u[n](c)})),t((function(){return new Error("No guard found to fold ".concat(c))})),r((function(n){throw n}),(function(n){return e[n](c)})))}}}export{u as createFoldObject}; |
@@ -1,1 +0,1 @@ | ||
export{and,not,or}from"./guard.js";export{createFold}from"./createFold.js";export{createFoldObject}from"./createFoldObject.js";import"tslib";import"./pipeable-6470c549.js"; | ||
export{and,not,or}from"./guard.js";export{createFold}from"./createFold.js";export{createFoldObject}from"./createFoldObject.js";import"tslib";import"./pipeable-649419ca.js"; |
{ | ||
"name": "@fp51/foldable-helpers", | ||
"version": "1.0.0-canary-31a721ab6c217486b1718b87b354f9082bad3ef7-1645668641396", | ||
"version": "1.0.0-canary-323bb819f8fcf74a71b1572a948bc843b60231bb-1655777936653", | ||
"description": "Typescript helpers to fold on sum types", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
17436