functype 0.8.47 → 0.8.48
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/chunk-3VJERXBP.js +1 -1
- package/dist/chunk-44WWBXBL.js +1 -1
- package/dist/chunk-5VTXJIR3.js +1 -1
- package/dist/chunk-A74BGUJY.js +1 -0
- package/dist/chunk-AKJ5AKY4.js +1 -1
- package/dist/chunk-E6RS47F7.js +1 -1
- package/dist/chunk-ETZOPDED.cjs +1 -0
- package/dist/chunk-F2MMVEVC.cjs +1 -0
- package/dist/chunk-F4X3NIWH.cjs +1 -0
- package/dist/chunk-GTEH27TN.cjs +1 -0
- package/dist/chunk-K3EKBPQE.js +0 -1
- package/dist/chunk-MGVXS4LE.js +1 -0
- package/dist/chunk-NK7YQNSE.cjs +1 -0
- package/dist/chunk-NSNLRGHP.js +1 -0
- package/dist/chunk-O2XFH626.js +1 -0
- package/dist/chunk-OTPXQIIK.cjs +1 -0
- package/dist/chunk-SKWCM5HU.cjs +1 -0
- package/dist/chunk-VYU4CRRS.cjs +1 -0
- package/dist/chunk-W4XJI2DG.cjs +1 -0
- package/dist/chunk-WRNN6RXF.cjs +1 -0
- package/dist/chunk-WTWWDZY6.js +0 -1
- package/dist/chunk-XORABVON.js +0 -1
- package/dist/chunk-YMNGLB2A.cjs +1 -0
- package/dist/chunk-YXBYA3MQ.cjs +1 -0
- package/dist/collections/index.cjs +1 -0
- package/dist/collections/index.d.cts +9 -0
- package/dist/collections/index.d.ts +4 -3
- package/dist/collections/index.js +0 -1
- package/dist/core/base/Base.cjs +1 -0
- package/dist/core/base/Base.js +1 -1
- package/dist/core/info/Info.cjs +1 -0
- package/dist/core/info/Info.d.cts +28 -0
- package/dist/core/info/Info.d.ts +28 -0
- package/dist/core/info/Info.js +1 -0
- package/dist/core/task/Task.cjs +1 -0
- package/dist/core/task/Task.d.cts +9 -0
- package/dist/core/task/Task.d.ts +5 -4
- package/dist/core/task/Task.js +1 -1
- package/dist/core/throwable/Throwable.cjs +1 -0
- package/dist/core/throwable/Throwable.d.cts +20 -0
- package/dist/core/throwable/Throwable.d.ts +20 -0
- package/dist/core/throwable/Throwable.js +1 -0
- package/dist/either/Either.cjs +1 -0
- package/dist/either/Either.d.cts +9 -0
- package/dist/either/Either.d.ts +4 -3
- package/dist/either/Either.js +1 -1
- package/dist/error/ParseError.cjs +1 -0
- package/dist/error/ParseError.js +1 -1
- package/dist/functor/index.cjs +1 -0
- package/dist/functor/index.js +1 -1
- package/dist/identity/Identity.cjs +1 -0
- package/dist/identity/Identity.js +1 -1
- package/dist/{index-Cb-cundW.d.ts → index-Bu5HXzs9.d.ts} +12 -19
- package/dist/{index-BSGv2rsm.d.mts → index-DxmJscpB.d.cts} +16 -23
- package/dist/index.cjs +1 -0
- package/dist/{index.d.mts → index.d.cts} +9 -8
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/iterable/index.cjs +1 -0
- package/dist/iterable/index.d.cts +9 -0
- package/dist/iterable/index.d.ts +4 -3
- package/dist/iterable/index.js +1 -1
- package/dist/list/List.cjs +1 -0
- package/dist/list/List.d.cts +9 -0
- package/dist/list/List.d.ts +4 -3
- package/dist/list/List.js +1 -1
- package/dist/map/Map.cjs +1 -0
- package/dist/map/Map.d.cts +9 -0
- package/dist/map/Map.d.ts +5 -4
- package/dist/map/Map.js +1 -1
- package/dist/map/shim.cjs +1 -0
- package/dist/map/shim.js +1 -1
- package/dist/option/Option.cjs +1 -0
- package/dist/option/Option.d.cts +9 -0
- package/dist/option/Option.d.ts +3 -2
- package/dist/option/Option.js +1 -1
- package/dist/serializable/Serializable.cjs +3 -0
- package/dist/serializable/Serializable.js +2 -2
- package/dist/set/Set.cjs +1 -0
- package/dist/set/Set.d.cts +9 -0
- package/dist/set/Set.d.ts +5 -4
- package/dist/set/Set.js +1 -1
- package/dist/set/shim.cjs +1 -0
- package/dist/set/shim.js +1 -1
- package/dist/try/Try.cjs +1 -0
- package/dist/try/Try.d.cts +9 -0
- package/dist/try/Try.d.ts +4 -3
- package/dist/try/Try.js +1 -1
- package/dist/tuple/Tuple.cjs +1 -0
- package/dist/tuple/{Tuple.d.mts → Tuple.d.cts} +4 -2
- package/dist/tuple/Tuple.d.ts +3 -1
- package/dist/tuple/Tuple.js +1 -1
- package/dist/typeable/Typeable.cjs +1 -0
- package/dist/typeable/Typeable.js +1 -1
- package/dist/util/index.cjs +1 -0
- package/dist/util/index.d.cts +14 -0
- package/dist/util/index.d.ts +4 -3
- package/dist/util/index.js +1 -1
- package/dist/util/isIterable.cjs +1 -0
- package/dist/util/isIterable.js +1 -1
- package/dist/valuable/Valuable.cjs +1 -0
- package/dist/valuable/Valuable.d.cts +9 -0
- package/dist/valuable/Valuable.d.ts +6 -3
- package/dist/valuable/Valuable.js +1 -1
- package/package.json +10 -8
- package/dist/chunk-2I2NKDFN.mjs +0 -1
- package/dist/chunk-2ML63TYF.mjs +0 -0
- package/dist/chunk-2U34DUZU.js +0 -1
- package/dist/chunk-377WQNCB.mjs +0 -1
- package/dist/chunk-4H62YQ42.mjs +0 -0
- package/dist/chunk-5GE5W3Y5.mjs +0 -1
- package/dist/chunk-HA5XD5KC.mjs +0 -1
- package/dist/chunk-HD6YYUHO.mjs +0 -1
- package/dist/chunk-OXLZ6UIZ.js +0 -1
- package/dist/chunk-UAFRIAJN.js +0 -1
- package/dist/chunk-V2J3R5IU.mjs +0 -0
- package/dist/chunk-VK5GL6NM.mjs +0 -1
- package/dist/chunk-YXECCMSX.mjs +0 -1
- package/dist/chunk-Z6YAH4SC.mjs +0 -1
- package/dist/collections/index.d.mts +0 -8
- package/dist/collections/index.mjs +0 -0
- package/dist/core/base/Base.mjs +0 -1
- package/dist/core/error/Throwable.d.mts +0 -12
- package/dist/core/error/Throwable.d.ts +0 -12
- package/dist/core/error/Throwable.js +0 -1
- package/dist/core/error/Throwable.mjs +0 -1
- package/dist/core/task/Task.d.mts +0 -8
- package/dist/core/task/Task.mjs +0 -1
- package/dist/either/Either.d.mts +0 -8
- package/dist/either/Either.mjs +0 -1
- package/dist/error/ParseError.mjs +0 -1
- package/dist/functor/index.mjs +0 -1
- package/dist/identity/Identity.mjs +0 -1
- package/dist/index.mjs +0 -1
- package/dist/iterable/index.d.mts +0 -8
- package/dist/iterable/index.mjs +0 -1
- package/dist/list/List.d.mts +0 -8
- package/dist/list/List.mjs +0 -1
- package/dist/map/Map.d.mts +0 -8
- package/dist/map/Map.mjs +0 -1
- package/dist/map/shim.mjs +0 -1
- package/dist/option/Option.d.mts +0 -8
- package/dist/option/Option.mjs +0 -1
- package/dist/serializable/Serializable.mjs +0 -3
- package/dist/set/Set.d.mts +0 -8
- package/dist/set/Set.mjs +0 -1
- package/dist/set/shim.mjs +0 -1
- package/dist/try/Try.d.mts +0 -8
- package/dist/try/Try.mjs +0 -1
- package/dist/tuple/Tuple.mjs +0 -1
- package/dist/typeable/Typeable.mjs +0 -1
- package/dist/util/index.d.mts +0 -13
- package/dist/util/index.mjs +0 -1
- package/dist/util/isIterable.mjs +0 -1
- package/dist/valuable/Valuable.d.mts +0 -6
- package/dist/valuable/Valuable.mjs +0 -1
- package/lib/TaskPromise.d.ts +0 -3
- package/lib/collections/index.d.ts +0 -8
- package/lib/either/Either.d.ts +0 -52
- package/lib/either/EitherT.d.ts +0 -9
- package/lib/error/ParseError.d.ts +0 -6
- package/lib/functor/index.d.ts +0 -15
- package/lib/identity/Identity.d.ts +0 -4
- package/lib/index.d.ts +0 -21
- package/lib/iterable/Seq.d.ts +0 -31
- package/lib/iterable/index.d.ts +0 -22
- package/lib/list/List.d.ts +0 -26
- package/lib/map/Map.d.ts +0 -17
- package/lib/map/shim.d.ts +0 -2
- package/lib/option/Option.d.ts +0 -30
- package/lib/serializable/Serializable.d.ts +0 -15
- package/lib/set/Set.d.ts +0 -15
- package/lib/set/shim.d.ts +0 -2
- package/lib/try/Try.d.ts +0 -18
- package/lib/tuple/Tuple.d.ts +0 -9
- package/lib/typeable/Typeable.d.ts +0 -4
- package/lib/util/index.d.ts +0 -3
- package/lib/util/isIterable.d.ts +0 -1
- /package/dist/core/base/{Base.d.mts → Base.d.cts} +0 -0
- /package/dist/error/{ParseError.d.mts → ParseError.d.cts} +0 -0
- /package/dist/functor/{index.d.mts → index.d.cts} +0 -0
- /package/dist/identity/{Identity.d.mts → Identity.d.cts} +0 -0
- /package/dist/map/{shim.d.mts → shim.d.cts} +0 -0
- /package/dist/serializable/{Serializable.d.mts → Serializable.d.cts} +0 -0
- /package/dist/set/{shim.d.mts → shim.d.cts} +0 -0
- /package/dist/typeable/{Typeable.d.mts → Typeable.d.cts} +0 -0
- /package/dist/util/{isIterable.d.mts → isIterable.d.cts} +0 -0
package/dist/chunk-3VJERXBP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var t=Set;export{t as a};
|
package/dist/chunk-44WWBXBL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{a as t}from"./chunk-AKJ5AKY4.js";function o(r,n){return{...t(r,n),toString(){return`${r}()`}}}export{o as a};
|
package/dist/chunk-5VTXJIR3.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var p=Map;export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as U}from"./chunk-44WWBXBL.js";import{b as x}from"./chunk-AKJ5AKY4.js";import{a as B}from"./chunk-MGVXS4LE.js";import{a as h}from"./chunk-5VTXJIR3.js";import{a as b}from"./chunk-3VJERXBP.js";import{a as S}from"./chunk-NSNLRGHP.js";import re from"safe-stable-stringify";import V from"safe-stable-stringify";import X from"safe-stable-stringify";var R=e=>{let t=new b(e),r=l(t),o={...r,_tag:"Set",add:n=>R([...t,n]),remove:n=>{let u=new b(t);return u.delete(n),R(u)},contains:n=>t.has(n),has:n=>t.has(n),map:n=>R(r.map(n)),flatMap:n=>R(r.flatMap(n)),toList:()=>l(t),toSet:()=>o,toString:()=>`Set(${Array.from(t).toString()})`};return o},A=e=>R(e);var T=e=>{let t=Array.from(e||[]),r={_tag:"List",[Symbol.iterator]:()=>t[Symbol.iterator](),get size(){return t.length},get length(){return t.length},map:o=>T(t.map(o)),flatMap:o=>T(t.flatMap(n=>Array.from(o(n)))),flatMapAsync:async o=>{let n=await Promise.all(t.map(async u=>await o(u)));return T(n.flatMap(u=>Array.from(u)))},forEach:o=>t.forEach(o),count:o=>t.filter(o).length,exists:o=>t.some(o),filter:o=>T(t.filter(o)),filterNot:o=>T(t.filter(n=>!o(n))),filterType:o=>T(t.filter(n=>x(n,o))),find:(o,n)=>{let u=t.find(L=>o(L)&&(n?x(L,n):!0));return f(u)},get head(){return t[0]},get headOption(){return t.length>0?f(t[0]):d()},get isEmpty(){return t.length===0},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>n=>t.reduce(n,o),foldRight:o=>n=>t.reduceRight((u,L)=>n(L,u),o),remove:o=>T(t.filter(n=>n!==o)),removeAt:o=>o<0||o>=t.length?r:T([...t.slice(0,o),...t.slice(o+1)]),add:o=>T([...t,o]),get:o=>f(t[o]),concat:o=>T([...t,...o.toArray()]),drop:o=>T(t.slice(o)),dropRight:o=>T(t.slice(0,-o)),dropWhile:o=>T(t.slice(t.findIndex(n=>!o(n)))),flatten:()=>T(t.flatMap(o=>Array.isArray(o)?o:[o])),toList:()=>r,toSet:()=>A(t),toString:()=>`List(${X(t)})`,toValue:()=>({_tag:"List",value:t})};return r},l=e=>T(e);var w=e=>({_tag:"Right",value:e,isLeft:()=>!1,isRight:()=>!0,getOrElse:t=>e,getOrThrow:()=>e,map:t=>i(t(e)),mapAsync:t=>t(e).then(r=>i(r)).catch(r=>Promise.resolve(a(r))),merge:t=>t.isLeft()?a(t.value):i([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>a(r)),toOption:()=>c(e),toList:()=>l([e]),toString:()=>`Right(${V(e)})`,[Symbol.iterator]:function*(){yield e},yield:function*(){yield e},traverse:t=>{let r=t(e);return r.isLeft()?a(r.value):i([r.value])},lazyMap:function*(t){yield i(t(e))},tap:t=>(t(e),i(e)),tapLeft:t=>i(e),mapLeft:t=>i(e),bimap:(t,r)=>i(r(e)),fold:(t,r)=>r(e),swap:()=>a(e),then:(t,r)=>Promise.resolve(e).then(t,r),toValue:()=>({_tag:"Right",value:e})}),O=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>a(e),mapAsync:t=>Promise.resolve(a(e)),merge:t=>a(e),flatMap:t=>a(e),flatMapAsync:t=>Promise.resolve(a(e)),toOption:()=>d(),toList:()=>l(),toString:()=>`Left(${V(e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>a(e),lazyMap:function*(t){yield a(e)},tap:t=>a(e),tapLeft:t=>(t(e),a(e)),mapLeft:t=>a(t(e)),bimap:(t,r)=>a(t(e)),fold:(t,r)=>t(e),swap:()=>i(e),then:(t,r)=>Promise.reject(e).then(null,r),toValue:()=>({_tag:"Right",value:e})}),i=e=>w(e),a=e=>O(e),he=e=>e.isRight(),Ae=e=>e.isLeft(),Ee=(e,t)=>{try{return i(e())}catch(r){return a(t(r))}},Y=e=>w(e);console.assert(Y);var Z=e=>O(e);console.assert(Z);var ge=async(e,t)=>{try{let r=await e();return i(r)}catch(r){return a(t(r))}},ee={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return a(r.value);t.push(r.value)}return i(t)},traverse:(e,t)=>ee.sequence(e.map(t)),fromNullable:(e,t)=>e==null?a(t):i(e),fromPredicate:(e,t,r)=>t(e)?i(e):a(r),ap:(e,t)=>e.flatMap(r=>t.map(r)),fromPromise:async(e,t)=>{try{let r=await e;return i(r)}catch(r){return a(t(r))}}};var E=(e,t)=>{let r=B.apply(e,t);return{...U("AppException",a(r))}},g=e=>({...U("AppResult",i(e))});function M(e,t=o=>o,r=()=>{}){try{return g(e())}catch(o){return E(t(o))}finally{r()}}M.success=e=>g(e);M.fail=e=>E(e);async function K(e,t=o=>o,r=async()=>{}){try{let o=await e();return g(o)}catch(o){let n=await t(o);return E(n)}finally{await r()}}K.success=e=>g(e);K.fail=e=>E(e);var y=e=>{let t="Map",r={values:new h(e)},o=()=>Array.from(r.values.entries()).map(([s,p])=>S([s,p])),n=s=>y(new h(r.values).set(s.toArray()[0],s.toArray()[1]).entries()),u=s=>{let p=new h(r.values);return p.delete(s)?y(p.entries()):y(r.values.entries())},L=s=>r.values.get(s[0])===s[1],P=()=>r.values.size,I=s=>y(Array.from(r.values.entries()).map(([p,Q])=>[p,s(Q)])),N=s=>{let p=y(r.values.entries()).toList();return y(p.flatMap(s).toArray())},F=s=>l(o()).reduce(s),z=s=>l(o()).reduceRight(s),C=s=>p=>l(o()).foldLeft(s)(p),$=s=>p=>l(o()).foldRight(s)(p),q=s=>f(r.values.get(s)),G=(s,p)=>f(r.values.get(s)).getOrElse(p),j=()=>r.values.size===0,W=(s,p)=>f(r.values.get(s)).orElse(p),D=()=>l(o()),H=()=>A(o()),J=()=>`Map(${o().toString()})`,oe=()=>({_tag:"Map",value:r.values});return{_tag:t,add:n,remove:u,contains:L,get size(){return P()},map:I,flatMap:N,reduce:F,reduceRight:z,foldLeft:C,foldRight:$,get:q,getOrElse:G,get isEmpty(){return j()},orElse:W,toList:D,toSet:H,toString:J,toValue:()=>({_tag:"Map",value:r.values})}},_e=e=>y(e);import k from"safe-stable-stringify";var _=e=>({_tag:"Success",error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>_(e),orThrow:t=>e,toEither:()=>i(e),map:t=>te(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${k(e)})`,toValue:()=>({_tag:"Success",value:e})}),v=e=>({_tag:"Failure",error:e,isSuccess:()=>!1,isFailure:()=>!0,get:()=>{throw e},getOrElse:t=>t,orElse:t=>t,orThrow:t=>{throw t},toEither:()=>a(e),map:t=>v(e),flatMap:t=>v(e),toString:()=>`Failure(${k(e)}))`,toValue:()=>({_tag:"Failure",value:e})}),te=e=>{try{return _(e())}catch(t){return v(t instanceof Error?t:new Error(String(t)))}};var c=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,getOrThrow:()=>e,orElse:()=>c(e),orNull:()=>e,map:t=>c(t(e)),filter(t){return t(e)?c(e):m},fold:(t,r)=>r(e),flatMap:t=>t(e),flatMapAsync:async t=>await t(e),reduce:t=>t(void 0,e),reduceRight:t=>t(void 0,e),foldLeft:t=>r=>r(t,e),foldRight:t=>r=>r(e,t),toList:()=>l([e]),contains:t=>t===e,size:1,toEither:t=>i(e),toString:()=>`Some(${re(e)})`,toValue:()=>({_tag:"Some",value:e})}),m={_tag:"None",value:void 0,isEmpty:!0,get:()=>{throw new Error("Cannot call get() on None")},getOrElse:e=>e,getOrThrow(e){throw e},orElse:e=>e,orNull:()=>null,map:e=>m,filter(e){return m},flatMap:e=>m,flatMapAsync:async e=>m,reduce:()=>{},reduceRight:()=>{},fold:(e,t)=>e(),foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>l([]),contains:()=>!1,size:0,toEither:e=>a(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},d=()=>m,f=e=>e!=null?c(e):d();f.from=e=>f(e);f.none=()=>d();export{c as a,d as b,f as c,A as d,l as e,i as f,a as g,he as h,Ae as i,Ee as j,Y as k,Z as l,ge as m,ee as n,E as o,g as p,M as q,K as r,_e as s,te as t};
|
package/dist/chunk-AKJ5AKY4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function n(e,t){return{...t,_tag:e}}function T(e,t){return!e||typeof e!="object"||!("_tag"in e)?!1:t?e._tag===t:!0}export{n as a,T as b};
|
package/dist/chunk-E6RS47F7.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var o=e=>{let r=new Error(e);return r.name="ParseError",r};export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYMNGLB2Acjs = require('./chunk-YMNGLB2A.cjs');function o(r,n){return{..._chunkYMNGLB2Acjs.a.call(void 0, r,n),toString(){return`${r}()`}}}exports.a = o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var d=Object.defineProperty;var e=(b,a,c)=>a in b?d(b,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[a]=c;var f=(b,a,c)=>e(b,typeof a!="symbol"?a+"":a,c);exports.a = f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var t=Set;exports.a = t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var o=e=>{let r=new Error(e);return r.name="ParseError",r};exports.a = o;
|
package/dist/chunk-K3EKBPQE.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-O2XFH626.js";var t="Throwable",s=class n extends Error{constructor(a,e){super(a,{cause:e?.cause});r(this,"_tag");r(this,"data");r(this,"cause");this.name=t,Object.defineProperties(this,{_tag:{value:t,writable:!1,configurable:!1},data:{value:e?.data,writable:!1,configurable:!1},name:{value:t,writable:!1,configurable:!1}}),e?.cause&&Object.defineProperty(this,"cause",{value:e.cause,writable:!1,configurable:!1}),e?.stack?this.stack=e.stack:Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}static apply(a,e){if(a instanceof Error)return new n(a.message,{data:e,cause:a.cause,stack:a.stack});let c=typeof a=="string"?a:"An unknown error occurred";return new n(c,{data:e})}};export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var T=r=>({_tag:"Tuple",map:e=>{let t=e(r);return T(t)},flatMap:e=>e(r),get:e=>r[e],toArray:()=>r,[Symbol.iterator](){let e=0;return{next:()=>e<r.length?{value:r[e++],done:!1}:{value:void 0,done:!0}}},toValue:()=>({_tag:"Tuple",value:r})});exports.a = T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var T=r=>({_tag:"Tuple",map:e=>{let t=e(r);return T(t)},flatMap:e=>e(r),get:e=>r[e],toArray:()=>r,[Symbol.iterator](){let e=0;return{next:()=>e<r.length?{value:r[e++],done:!1}:{value:void 0,done:!0}}},toValue:()=>({_tag:"Tuple",value:r})});export{T as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d=Object.defineProperty;var e=(b,a,c)=>a in b?d(b,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[a]=c;var f=(b,a,c)=>e(b,typeof a!="symbol"?a+"":a,c);export{f as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkF2MMVEVCcjs = require('./chunk-F2MMVEVC.cjs');var t="Throwable",s= exports.a =class n extends Error{constructor(a,e){super(a,{cause:_optionalChain([e, 'optionalAccess', _ => _.cause])});_chunkF2MMVEVCcjs.a.call(void 0, this,"_tag");_chunkF2MMVEVCcjs.a.call(void 0, this,"data");_chunkF2MMVEVCcjs.a.call(void 0, this,"cause");this.name=t,Object.defineProperties(this,{_tag:{value:t,writable:!1,configurable:!1},data:{value:_optionalChain([e, 'optionalAccess', _2 => _2.data]),writable:!1,configurable:!1},name:{value:t,writable:!1,configurable:!1}}),_optionalChain([e, 'optionalAccess', _3 => _3.cause])&&Object.defineProperty(this,"cause",{value:e.cause,writable:!1,configurable:!1}),_optionalChain([e, 'optionalAccess', _4 => _4.stack])?this.stack=e.stack:Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}static apply(a,e){if(a instanceof Error)return new n(a.message,{data:e,cause:a.cause,stack:a.stack});let c=typeof a=="string"?a:"An unknown error occurred";return new n(c,{data:e})}};exports.a = s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkETZOPDEDcjs = require('./chunk-ETZOPDED.cjs');var _chunkYMNGLB2Acjs = require('./chunk-YMNGLB2A.cjs');var _chunkSKWCM5HUcjs = require('./chunk-SKWCM5HU.cjs');var _chunkYXBYA3MQcjs = require('./chunk-YXBYA3MQ.cjs');var _chunkF4X3NIWHcjs = require('./chunk-F4X3NIWH.cjs');var _chunkNK7YQNSEcjs = require('./chunk-NK7YQNSE.cjs');var _safestablestringify = require('safe-stable-stringify'); var _safestablestringify2 = _interopRequireDefault(_safestablestringify);var R=e=>{let t=new (0, _chunkF4X3NIWHcjs.a)(e),r=l(t),o={...r,_tag:"Set",add:n=>R([...t,n]),remove:n=>{let u=new (0, _chunkF4X3NIWHcjs.a)(t);return u.delete(n),R(u)},contains:n=>t.has(n),has:n=>t.has(n),map:n=>R(r.map(n)),flatMap:n=>R(r.flatMap(n)),toList:()=>l(t),toSet:()=>o,toString:()=>`Set(${Array.from(t).toString()})`};return o},A= exports.d =e=>R(e);var T=e=>{let t=Array.from(e||[]),r={_tag:"List",[Symbol.iterator]:()=>t[Symbol.iterator](),get size(){return t.length},get length(){return t.length},map:o=>T(t.map(o)),flatMap:o=>T(t.flatMap(n=>Array.from(o(n)))),flatMapAsync:async o=>{let n=await Promise.all(t.map(async u=>await o(u)));return T(n.flatMap(u=>Array.from(u)))},forEach:o=>t.forEach(o),count:o=>t.filter(o).length,exists:o=>t.some(o),filter:o=>T(t.filter(o)),filterNot:o=>T(t.filter(n=>!o(n))),filterType:o=>T(t.filter(n=>_chunkYMNGLB2Acjs.b.call(void 0, n,o))),find:(o,n)=>{let u=t.find(L=>o(L)&&(n?_chunkYMNGLB2Acjs.b.call(void 0, L,n):!0));return f(u)},get head(){return t[0]},get headOption(){return t.length>0?f(t[0]):d()},get isEmpty(){return t.length===0},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>n=>t.reduce(n,o),foldRight:o=>n=>t.reduceRight((u,L)=>n(L,u),o),remove:o=>T(t.filter(n=>n!==o)),removeAt:o=>o<0||o>=t.length?r:T([...t.slice(0,o),...t.slice(o+1)]),add:o=>T([...t,o]),get:o=>f(t[o]),concat:o=>T([...t,...o.toArray()]),drop:o=>T(t.slice(o)),dropRight:o=>T(t.slice(0,-o)),dropWhile:o=>T(t.slice(t.findIndex(n=>!o(n)))),flatten:()=>T(t.flatMap(o=>Array.isArray(o)?o:[o])),toList:()=>r,toSet:()=>A(t),toString:()=>`List(${_safestablestringify2.default.call(void 0, t)})`,toValue:()=>({_tag:"List",value:t})};return r},l= exports.e =e=>T(e);var w=e=>({_tag:"Right",value:e,isLeft:()=>!1,isRight:()=>!0,getOrElse:t=>e,getOrThrow:()=>e,map:t=>i(t(e)),mapAsync:t=>t(e).then(r=>i(r)).catch(r=>Promise.resolve(a(r))),merge:t=>t.isLeft()?a(t.value):i([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>a(r)),toOption:()=>c(e),toList:()=>l([e]),toString:()=>`Right(${_safestablestringify2.default.call(void 0, e)})`,[Symbol.iterator]:function*(){yield e},yield:function*(){yield e},traverse:t=>{let r=t(e);return r.isLeft()?a(r.value):i([r.value])},lazyMap:function*(t){yield i(t(e))},tap:t=>(t(e),i(e)),tapLeft:t=>i(e),mapLeft:t=>i(e),bimap:(t,r)=>i(r(e)),fold:(t,r)=>r(e),swap:()=>a(e),then:(t,r)=>Promise.resolve(e).then(t,r),toValue:()=>({_tag:"Right",value:e})}),O=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>a(e),mapAsync:t=>Promise.resolve(a(e)),merge:t=>a(e),flatMap:t=>a(e),flatMapAsync:t=>Promise.resolve(a(e)),toOption:()=>d(),toList:()=>l(),toString:()=>`Left(${_safestablestringify2.default.call(void 0, e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>a(e),lazyMap:function*(t){yield a(e)},tap:t=>a(e),tapLeft:t=>(t(e),a(e)),mapLeft:t=>a(t(e)),bimap:(t,r)=>a(t(e)),fold:(t,r)=>t(e),swap:()=>i(e),then:(t,r)=>Promise.reject(e).then(null,r),toValue:()=>({_tag:"Right",value:e})}),i= exports.f =e=>w(e),a= exports.g =e=>O(e),he= exports.h =e=>e.isRight(),Ae= exports.i =e=>e.isLeft(),Ee= exports.j =(e,t)=>{try{return i(e())}catch(r){return a(t(r))}},Y= exports.k =e=>w(e);console.assert(Y);var Z=e=>O(e);console.assert(Z);var ge=async(e,t)=>{try{let r=await e();return i(r)}catch(r){return a(t(r))}},ee= exports.n ={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return a(r.value);t.push(r.value)}return i(t)},traverse:(e,t)=>ee.sequence(e.map(t)),fromNullable:(e,t)=>e==null?a(t):i(e),fromPredicate:(e,t,r)=>t(e)?i(e):a(r),ap:(e,t)=>e.flatMap(r=>t.map(r)),fromPromise:async(e,t)=>{try{let r=await e;return i(r)}catch(r){return a(t(r))}}};var E=(e,t)=>{let r=_chunkSKWCM5HUcjs.a.apply(e,t);return{..._chunkETZOPDEDcjs.a.call(void 0, "AppException",a(r))}},g= exports.p =e=>({..._chunkETZOPDEDcjs.a.call(void 0, "AppResult",i(e))});function M(e,t=o=>o,r=()=>{}){try{return g(e())}catch(o){return E(t(o))}finally{r()}}M.success=e=>g(e);M.fail=e=>E(e);async function K(e,t=o=>o,r=async()=>{}){try{let o=await e();return g(o)}catch(o){let n=await t(o);return E(n)}finally{await r()}}K.success=e=>g(e);K.fail=e=>E(e);var y=e=>{let t="Map",r={values:new (0, _chunkYXBYA3MQcjs.a)(e)},o=()=>Array.from(r.values.entries()).map(([s,p])=>_chunkNK7YQNSEcjs.a.call(void 0, [s,p])),n=s=>y(new (0, _chunkYXBYA3MQcjs.a)(r.values).set(s.toArray()[0],s.toArray()[1]).entries()),u=s=>{let p=new (0, _chunkYXBYA3MQcjs.a)(r.values);return p.delete(s)?y(p.entries()):y(r.values.entries())},L=s=>r.values.get(s[0])===s[1],P=()=>r.values.size,I=s=>y(Array.from(r.values.entries()).map(([p,Q])=>[p,s(Q)])),N=s=>{let p=y(r.values.entries()).toList();return y(p.flatMap(s).toArray())},F=s=>l(o()).reduce(s),z=s=>l(o()).reduceRight(s),C=s=>p=>l(o()).foldLeft(s)(p),$=s=>p=>l(o()).foldRight(s)(p),q=s=>f(r.values.get(s)),G=(s,p)=>f(r.values.get(s)).getOrElse(p),j=()=>r.values.size===0,W=(s,p)=>f(r.values.get(s)).orElse(p),D=()=>l(o()),H=()=>A(o()),J=()=>`Map(${o().toString()})`,oe=()=>({_tag:"Map",value:r.values});return{_tag:t,add:n,remove:u,contains:L,get size(){return P()},map:I,flatMap:N,reduce:F,reduceRight:z,foldLeft:C,foldRight:$,get:q,getOrElse:G,get isEmpty(){return j()},orElse:W,toList:D,toSet:H,toString:J,toValue:()=>({_tag:"Map",value:r.values})}},_e= exports.s =e=>y(e);var _=e=>({_tag:"Success",error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>_(e),orThrow:t=>e,toEither:()=>i(e),map:t=>te(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${_safestablestringify2.default.call(void 0, e)})`,toValue:()=>({_tag:"Success",value:e})}),v=e=>({_tag:"Failure",error:e,isSuccess:()=>!1,isFailure:()=>!0,get:()=>{throw e},getOrElse:t=>t,orElse:t=>t,orThrow:t=>{throw t},toEither:()=>a(e),map:t=>v(e),flatMap:t=>v(e),toString:()=>`Failure(${_safestablestringify2.default.call(void 0, e)}))`,toValue:()=>({_tag:"Failure",value:e})}),te= exports.t =e=>{try{return _(e())}catch(t){return v(t instanceof Error?t:new Error(String(t)))}};var c=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,getOrThrow:()=>e,orElse:()=>c(e),orNull:()=>e,map:t=>c(t(e)),filter(t){return t(e)?c(e):m},fold:(t,r)=>r(e),flatMap:t=>t(e),flatMapAsync:async t=>await t(e),reduce:t=>t(void 0,e),reduceRight:t=>t(void 0,e),foldLeft:t=>r=>r(t,e),foldRight:t=>r=>r(e,t),toList:()=>l([e]),contains:t=>t===e,size:1,toEither:t=>i(e),toString:()=>`Some(${_safestablestringify2.default.call(void 0, e)})`,toValue:()=>({_tag:"Some",value:e})}),m={_tag:"None",value:void 0,isEmpty:!0,get:()=>{throw new Error("Cannot call get() on None")},getOrElse:e=>e,getOrThrow(e){throw e},orElse:e=>e,orNull:()=>null,map:e=>m,filter(e){return m},flatMap:e=>m,flatMapAsync:async e=>m,reduce:()=>{},reduceRight:()=>{},fold:(e,t)=>e(),foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>l([]),contains:()=>!1,size:0,toEither:e=>a(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},d= exports.b =()=>m,f= exports.c =e=>e!=null?c(e):d();f.from=e=>f(e);f.none=()=>d();exports.a = c; exports.b = d; exports.c = f; exports.d = A; exports.e = l; exports.f = i; exports.g = a; exports.h = he; exports.i = Ae; exports.j = Ee; exports.k = Y; exports.l = Z; exports.m = ge; exports.n = ee; exports.o = E; exports.p = g; exports.q = M; exports.r = K; exports.s = _e; exports.t = te;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/chunk-WTWWDZY6.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/chunk-XORABVON.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});function n(e,t){return{...t,_tag:e}}function T(e,t){return!e||typeof e!="object"||!("_tag"in e)?!1:t?e._tag===t:!0}exports.a = n; exports.b = T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var p=Map;exports.a = p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { a as Collection, C as Converters } from '../index-DxmJscpB.cjs';
|
|
2
|
+
import '../functor/index.cjs';
|
|
3
|
+
import '../core/base/Base.cjs';
|
|
4
|
+
import '../core/throwable/Throwable.cjs';
|
|
5
|
+
import '../typeable/Typeable.cjs';
|
|
6
|
+
import '../valuable/Valuable.cjs';
|
|
7
|
+
import '../identity/Identity.cjs';
|
|
8
|
+
import '../tuple/Tuple.cjs';
|
|
9
|
+
import '../map/shim.cjs';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { a as Collection, C as Converters } from '../index-
|
|
1
|
+
export { a as Collection, C as Converters } from '../index-Bu5HXzs9.js';
|
|
2
2
|
import '../functor/index.js';
|
|
3
3
|
import '../core/base/Base.js';
|
|
4
|
-
import '../core/
|
|
4
|
+
import '../core/throwable/Throwable.js';
|
|
5
5
|
import '../typeable/Typeable.js';
|
|
6
|
+
import '../valuable/Valuable.js';
|
|
6
7
|
import '../identity/Identity.js';
|
|
7
8
|
import '../tuple/Tuple.js';
|
|
8
|
-
import '../
|
|
9
|
+
import '../map/shim.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkETZOPDEDcjs = require('../../chunk-ETZOPDED.cjs');require('../../chunk-YMNGLB2A.cjs');require('../../chunk-F2MMVEVC.cjs');exports.Base = _chunkETZOPDEDcjs.a;
|
package/dist/core/base/Base.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{a}from"../../chunk-44WWBXBL.js";import"../../chunk-AKJ5AKY4.js";import"../../chunk-O2XFH626.js";export{a as Base};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkETZOPDEDcjs = require('../../chunk-ETZOPDED.cjs');require('../../chunk-YMNGLB2A.cjs');require('../../chunk-F2MMVEVC.cjs');function o(r,n,i){return{..._chunkETZOPDEDcjs.a.call(void 0, r,n),...i}}exports.Info = o;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Identity } from '../../identity/Identity.cjs';
|
|
2
|
+
|
|
3
|
+
type Params = {
|
|
4
|
+
id: string;
|
|
5
|
+
description: string;
|
|
6
|
+
location: string;
|
|
7
|
+
reason: string;
|
|
8
|
+
means: string;
|
|
9
|
+
} & Identity<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Base Object from which most other objects inherit
|
|
12
|
+
* @param type
|
|
13
|
+
* @param body
|
|
14
|
+
* @param params
|
|
15
|
+
* @constructor
|
|
16
|
+
*/
|
|
17
|
+
declare function Info<T>(type: string, body: T, params: Params): T & {
|
|
18
|
+
toString(): string;
|
|
19
|
+
_tag: string;
|
|
20
|
+
} & {
|
|
21
|
+
id: string;
|
|
22
|
+
description: string;
|
|
23
|
+
location: string;
|
|
24
|
+
reason: string;
|
|
25
|
+
means: string;
|
|
26
|
+
} & Identity<string>;
|
|
27
|
+
|
|
28
|
+
export { Info };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Identity } from '../../identity/Identity.js';
|
|
2
|
+
|
|
3
|
+
type Params = {
|
|
4
|
+
id: string;
|
|
5
|
+
description: string;
|
|
6
|
+
location: string;
|
|
7
|
+
reason: string;
|
|
8
|
+
means: string;
|
|
9
|
+
} & Identity<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Base Object from which most other objects inherit
|
|
12
|
+
* @param type
|
|
13
|
+
* @param body
|
|
14
|
+
* @param params
|
|
15
|
+
* @constructor
|
|
16
|
+
*/
|
|
17
|
+
declare function Info<T>(type: string, body: T, params: Params): T & {
|
|
18
|
+
toString(): string;
|
|
19
|
+
_tag: string;
|
|
20
|
+
} & {
|
|
21
|
+
id: string;
|
|
22
|
+
description: string;
|
|
23
|
+
location: string;
|
|
24
|
+
reason: string;
|
|
25
|
+
means: string;
|
|
26
|
+
} & Identity<string>;
|
|
27
|
+
|
|
28
|
+
export { Info };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"../../chunk-44WWBXBL.js";import"../../chunk-AKJ5AKY4.js";import"../../chunk-O2XFH626.js";function o(r,n,i){return{...t(r,n),...i}}export{o as Info};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVYU4CRRScjs = require('../../chunk-VYU4CRRS.cjs');require('../../chunk-ETZOPDED.cjs');require('../../chunk-YMNGLB2A.cjs');require('../../chunk-SKWCM5HU.cjs');require('../../chunk-YXBYA3MQ.cjs');require('../../chunk-F4X3NIWH.cjs');require('../../chunk-NK7YQNSE.cjs');require('../../chunk-F2MMVEVC.cjs');require('../../chunk-W4XJI2DG.cjs');require('../../chunk-OTPXQIIK.cjs');require('../../chunk-WRNN6RXF.cjs');exports.AppException = _chunkVYU4CRRScjs.o; exports.AppResult = _chunkVYU4CRRScjs.p; exports.AsyncTask = _chunkVYU4CRRScjs.r; exports.Task = _chunkVYU4CRRScjs.q;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../throwable/Throwable.cjs';
|
|
2
|
+
export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-DxmJscpB.cjs';
|
|
3
|
+
import '../../typeable/Typeable.cjs';
|
|
4
|
+
import '../../functor/index.cjs';
|
|
5
|
+
import '../base/Base.cjs';
|
|
6
|
+
import '../../valuable/Valuable.cjs';
|
|
7
|
+
import '../../identity/Identity.cjs';
|
|
8
|
+
import '../../tuple/Tuple.cjs';
|
|
9
|
+
import '../../map/shim.cjs';
|
package/dist/core/task/Task.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import '../throwable/Throwable.js';
|
|
2
|
+
export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-Bu5HXzs9.js';
|
|
3
|
+
import '../../typeable/Typeable.js';
|
|
3
4
|
import '../../functor/index.js';
|
|
4
5
|
import '../base/Base.js';
|
|
6
|
+
import '../../valuable/Valuable.js';
|
|
5
7
|
import '../../identity/Identity.js';
|
|
6
8
|
import '../../tuple/Tuple.js';
|
|
7
|
-
import '../../
|
|
8
|
-
import '../../valuable/Valuable.js';
|
|
9
|
+
import '../../map/shim.js';
|
package/dist/core/task/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{o as a,p as b,q as c,r as d}from"../../chunk-A74BGUJY.js";import"../../chunk-44WWBXBL.js";import"../../chunk-AKJ5AKY4.js";import"../../chunk-MGVXS4LE.js";import"../../chunk-5VTXJIR3.js";import"../../chunk-3VJERXBP.js";import"../../chunk-NSNLRGHP.js";import"../../chunk-O2XFH626.js";import"../../chunk-XORABVON.js";import"../../chunk-K3EKBPQE.js";import"../../chunk-WTWWDZY6.js";export{a as AppException,b as AppResult,d as AsyncTask,c as Task};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSKWCM5HUcjs = require('../../chunk-SKWCM5HU.cjs');require('../../chunk-F2MMVEVC.cjs');exports.Throwable = _chunkSKWCM5HUcjs.a;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Typeable } from '../../typeable/Typeable.cjs';
|
|
2
|
+
|
|
3
|
+
declare const NAME: "Throwable";
|
|
4
|
+
type ThrowableType = Error & Typeable<typeof NAME> & {
|
|
5
|
+
readonly data?: unknown;
|
|
6
|
+
readonly cause?: Error;
|
|
7
|
+
};
|
|
8
|
+
declare class Throwable extends Error implements ThrowableType {
|
|
9
|
+
readonly _tag: typeof NAME;
|
|
10
|
+
readonly data?: unknown;
|
|
11
|
+
readonly cause?: Error;
|
|
12
|
+
protected constructor(message: string, options?: {
|
|
13
|
+
data?: unknown;
|
|
14
|
+
cause?: Error;
|
|
15
|
+
stack?: string;
|
|
16
|
+
});
|
|
17
|
+
static apply(srcError: unknown, data?: unknown): ThrowableType;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { Throwable, type ThrowableType };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Typeable } from '../../typeable/Typeable.js';
|
|
2
|
+
|
|
3
|
+
declare const NAME: "Throwable";
|
|
4
|
+
type ThrowableType = Error & Typeable<typeof NAME> & {
|
|
5
|
+
readonly data?: unknown;
|
|
6
|
+
readonly cause?: Error;
|
|
7
|
+
};
|
|
8
|
+
declare class Throwable extends Error implements ThrowableType {
|
|
9
|
+
readonly _tag: typeof NAME;
|
|
10
|
+
readonly data?: unknown;
|
|
11
|
+
readonly cause?: Error;
|
|
12
|
+
protected constructor(message: string, options?: {
|
|
13
|
+
data?: unknown;
|
|
14
|
+
cause?: Error;
|
|
15
|
+
stack?: string;
|
|
16
|
+
});
|
|
17
|
+
static apply(srcError: unknown, data?: unknown): ThrowableType;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { Throwable, type ThrowableType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-MGVXS4LE.js";import"../../chunk-O2XFH626.js";export{a as Throwable};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVYU4CRRScjs = require('../chunk-VYU4CRRS.cjs');require('../chunk-ETZOPDED.cjs');require('../chunk-YMNGLB2A.cjs');require('../chunk-SKWCM5HU.cjs');require('../chunk-YXBYA3MQ.cjs');require('../chunk-F4X3NIWH.cjs');require('../chunk-NK7YQNSE.cjs');require('../chunk-F2MMVEVC.cjs');require('../chunk-W4XJI2DG.cjs');require('../chunk-OTPXQIIK.cjs');require('../chunk-WRNN6RXF.cjs');exports.Either = _chunkVYU4CRRScjs.n; exports.Left = _chunkVYU4CRRScjs.g; exports.Right = _chunkVYU4CRRScjs.f; exports.TypeCheckLeft = _chunkVYU4CRRScjs.l; exports.TypeCheckRight = _chunkVYU4CRRScjs.k; exports.isLeft = _chunkVYU4CRRScjs.i; exports.isRight = _chunkVYU4CRRScjs.h; exports.tryCatch = _chunkVYU4CRRScjs.j; exports.tryCatchAsync = _chunkVYU4CRRScjs.m;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../functor/index.cjs';
|
|
2
|
+
export { E as Either, c as Left, R as Right, T as TestEither, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from '../index-DxmJscpB.cjs';
|
|
3
|
+
import '../typeable/Typeable.cjs';
|
|
4
|
+
import '../valuable/Valuable.cjs';
|
|
5
|
+
import '../core/base/Base.cjs';
|
|
6
|
+
import '../core/throwable/Throwable.cjs';
|
|
7
|
+
import '../identity/Identity.cjs';
|
|
8
|
+
import '../tuple/Tuple.cjs';
|
|
9
|
+
import '../map/shim.cjs';
|
package/dist/either/Either.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import '../functor/index.js';
|
|
2
|
-
export { E as Either, c as Left, R as Right, T as TestEither, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from '../index-
|
|
2
|
+
export { E as Either, c as Left, R as Right, T as TestEither, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from '../index-Bu5HXzs9.js';
|
|
3
3
|
import '../typeable/Typeable.js';
|
|
4
|
+
import '../valuable/Valuable.js';
|
|
4
5
|
import '../core/base/Base.js';
|
|
5
|
-
import '../core/
|
|
6
|
+
import '../core/throwable/Throwable.js';
|
|
6
7
|
import '../identity/Identity.js';
|
|
7
8
|
import '../tuple/Tuple.js';
|
|
8
|
-
import '../
|
|
9
|
+
import '../map/shim.js';
|
package/dist/either/Either.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{f as a,g as b,h as c,i as d,j as e,k as f,l as g,m as h,n as i}from"../chunk-A74BGUJY.js";import"../chunk-44WWBXBL.js";import"../chunk-AKJ5AKY4.js";import"../chunk-MGVXS4LE.js";import"../chunk-5VTXJIR3.js";import"../chunk-3VJERXBP.js";import"../chunk-NSNLRGHP.js";import"../chunk-O2XFH626.js";import"../chunk-XORABVON.js";import"../chunk-K3EKBPQE.js";import"../chunk-WTWWDZY6.js";export{i as Either,b as Left,a as Right,g as TypeCheckLeft,f as TypeCheckRight,d as isLeft,c as isRight,e as tryCatch,h as tryCatchAsync};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGTEH27TNcjs = require('../chunk-GTEH27TN.cjs');require('../chunk-F2MMVEVC.cjs');exports.ParseError = _chunkGTEH27TNcjs.a;
|
package/dist/error/ParseError.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
import{a}from"../chunk-E6RS47F7.js";import"../chunk-O2XFH626.js";export{a as ParseError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../chunk-W4XJI2DG.cjs');
|
package/dist/functor/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
import"../chunk-XORABVON.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../chunk-OTPXQIIK.cjs');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
import"../chunk-K3EKBPQE.js";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Type, Functor, AsyncFunctor } from './functor/index.js';
|
|
2
2
|
import './core/base/Base.js';
|
|
3
|
-
import { Throwable } from './core/
|
|
4
|
-
import './identity/Identity.js';
|
|
5
|
-
import { Tuple } from './tuple/Tuple.js';
|
|
3
|
+
import { Throwable } from './core/throwable/Throwable.js';
|
|
6
4
|
import { Typeable, ExtractTag } from './typeable/Typeable.js';
|
|
7
5
|
import { Valuable } from './valuable/Valuable.js';
|
|
6
|
+
import './identity/Identity.js';
|
|
7
|
+
import { Tuple } from './tuple/Tuple.js';
|
|
8
|
+
import { IESMap } from './map/shim.js';
|
|
8
9
|
|
|
9
10
|
declare const Some: <T extends Type>(value: T) => Option<T>;
|
|
10
11
|
declare const None: <T extends Type>() => Option<T>;
|
|
@@ -35,7 +36,7 @@ type Option<T extends Type> = {
|
|
|
35
36
|
_tag: "Some" | "None";
|
|
36
37
|
value: T;
|
|
37
38
|
};
|
|
38
|
-
} & (Traversable<T> & Functor<T> & Typeable<"Some" | "None"> & Valuable<T> & AsyncFunctor<T>);
|
|
39
|
+
} & (Traversable<T> & Functor<T> & Typeable<"Some" | "None"> & Valuable<"Some" | "None", T> & AsyncFunctor<T>);
|
|
39
40
|
declare const Option: {
|
|
40
41
|
<T extends Type>(value: T | null | undefined): Option<T>;
|
|
41
42
|
from<T>(value: T): Option<T>;
|
|
@@ -64,10 +65,6 @@ type IterableType<A extends Type> = {
|
|
|
64
65
|
flatMap<B extends Type>(f: (a: A) => IterableType<B>): IterableType<B>;
|
|
65
66
|
get size(): number;
|
|
66
67
|
toArray<B = A>(): readonly B[];
|
|
67
|
-
toValue: () => {
|
|
68
|
-
_tag: string;
|
|
69
|
-
value: A[];
|
|
70
|
-
};
|
|
71
68
|
} & Iterable<A> & Functor<A> & AsyncFunctor<A>;
|
|
72
69
|
|
|
73
70
|
type Converters<A> = {
|
|
@@ -87,7 +84,7 @@ type Set<A> = {
|
|
|
87
84
|
toList: () => List<A>;
|
|
88
85
|
toSet: () => Set<A>;
|
|
89
86
|
toString: () => string;
|
|
90
|
-
} & IterableType<A> & Collection<A>;
|
|
87
|
+
} & IterableType<A> & Collection<A> & Typeable<"Set">;
|
|
91
88
|
declare const Set: <A>(iterable?: Iterable<A> | IterableType<A>) => Set<A>;
|
|
92
89
|
|
|
93
90
|
type List<A> = {
|
|
@@ -120,11 +117,7 @@ type List<A> = {
|
|
|
120
117
|
toList: () => List<A>;
|
|
121
118
|
toSet: () => Set<A>;
|
|
122
119
|
toString: () => string;
|
|
123
|
-
|
|
124
|
-
_tag: string;
|
|
125
|
-
value: A[];
|
|
126
|
-
};
|
|
127
|
-
} & IterableType<A> & Typeable<"List"> & AsyncFunctor<A>;
|
|
120
|
+
} & IterableType<A> & AsyncFunctor<A> & Typeable<"List"> & Valuable<"List", A[]>;
|
|
128
121
|
declare const List: <A>(values?: Iterable<A>) => List<A>;
|
|
129
122
|
|
|
130
123
|
type TestEither<L extends Type, R extends Type> = Either<L, R> & Functor<R> & AsyncFunctor<R>;
|
|
@@ -165,7 +158,7 @@ type Either<L extends Type, R extends Type> = {
|
|
|
165
158
|
bimap: <L2 extends Type, R2 extends Type>(fl: (value: L) => L2, fr: (value: R) => R2) => Either<L2, R2>;
|
|
166
159
|
fold: <T extends Type>(onLeft: (value: L) => T, onRight: (value: R) => T) => T;
|
|
167
160
|
swap: () => Either<R, L>;
|
|
168
|
-
} & Typeable<"Left" | "Right"> & PromiseLike<R> & AsyncFunctor<R>;
|
|
161
|
+
} & Typeable<"Left" | "Right"> & Valuable<"Left" | "Right", L | R> & PromiseLike<R> & AsyncFunctor<R>;
|
|
169
162
|
declare const Either: {
|
|
170
163
|
sequence: <L extends Type, R extends Type>(eithers: Either<L, R>[]) => Either<L, R[]>;
|
|
171
164
|
traverse: <L extends Type, R extends Type, U extends Type>(arr: R[], f: (value: R) => Either<L, U>) => Either<L, U[]>;
|
|
@@ -207,12 +200,12 @@ type Map<K, V> = {
|
|
|
207
200
|
get(key: K): Option<V>;
|
|
208
201
|
getOrElse(key: K, defaultValue: V): V;
|
|
209
202
|
orElse(key: K, alternative: Option<V>): Option<V>;
|
|
210
|
-
} & SafeTraversable<K, V> & Collection<Tuple<[K, V]>>;
|
|
203
|
+
} & SafeTraversable<K, V> & Collection<Tuple<[K, V]>> & Typeable<"Map"> & Valuable<"Map", IESMap<K, V>>;
|
|
211
204
|
declare const Map: <K, V>(entries?: readonly (readonly [K, V])[] | IterableIterator<[K, V]> | null) => Map<K, V>;
|
|
212
205
|
|
|
206
|
+
type TypeNames = "Success" | "Failure";
|
|
213
207
|
type Try<T> = {
|
|
214
|
-
readonly _tag:
|
|
215
|
-
readonly value: T | undefined;
|
|
208
|
+
readonly _tag: TypeNames;
|
|
216
209
|
readonly error: Error | undefined;
|
|
217
210
|
isSuccess: () => boolean;
|
|
218
211
|
isFailure: () => boolean;
|
|
@@ -224,7 +217,7 @@ type Try<T> = {
|
|
|
224
217
|
map: <U>(f: (value: T) => U) => Try<U>;
|
|
225
218
|
flatMap: <U>(f: (value: T) => Try<U>) => Try<U>;
|
|
226
219
|
toString: () => string;
|
|
227
|
-
} & Typeable<
|
|
220
|
+
} & Typeable<TypeNames> & Valuable<TypeNames, T | Error>;
|
|
228
221
|
declare const Try: <T>(f: () => T) => Try<T>;
|
|
229
222
|
|
|
230
223
|
type Traversable<A extends Type> = Functor<A> & {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Type, Functor, AsyncFunctor } from './functor/index.
|
|
2
|
-
import './core/base/Base.
|
|
3
|
-
import { Throwable } from './core/
|
|
4
|
-
import './
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
1
|
+
import { Type, Functor, AsyncFunctor } from './functor/index.cjs';
|
|
2
|
+
import './core/base/Base.cjs';
|
|
3
|
+
import { Throwable } from './core/throwable/Throwable.cjs';
|
|
4
|
+
import { Typeable, ExtractTag } from './typeable/Typeable.cjs';
|
|
5
|
+
import { Valuable } from './valuable/Valuable.cjs';
|
|
6
|
+
import './identity/Identity.cjs';
|
|
7
|
+
import { Tuple } from './tuple/Tuple.cjs';
|
|
8
|
+
import { IESMap } from './map/shim.cjs';
|
|
8
9
|
|
|
9
10
|
declare const Some: <T extends Type>(value: T) => Option<T>;
|
|
10
11
|
declare const None: <T extends Type>() => Option<T>;
|
|
@@ -35,7 +36,7 @@ type Option<T extends Type> = {
|
|
|
35
36
|
_tag: "Some" | "None";
|
|
36
37
|
value: T;
|
|
37
38
|
};
|
|
38
|
-
} & (Traversable<T> & Functor<T> & Typeable<"Some" | "None"> & Valuable<T> & AsyncFunctor<T>);
|
|
39
|
+
} & (Traversable<T> & Functor<T> & Typeable<"Some" | "None"> & Valuable<"Some" | "None", T> & AsyncFunctor<T>);
|
|
39
40
|
declare const Option: {
|
|
40
41
|
<T extends Type>(value: T | null | undefined): Option<T>;
|
|
41
42
|
from<T>(value: T): Option<T>;
|
|
@@ -64,10 +65,6 @@ type IterableType<A extends Type> = {
|
|
|
64
65
|
flatMap<B extends Type>(f: (a: A) => IterableType<B>): IterableType<B>;
|
|
65
66
|
get size(): number;
|
|
66
67
|
toArray<B = A>(): readonly B[];
|
|
67
|
-
toValue: () => {
|
|
68
|
-
_tag: string;
|
|
69
|
-
value: A[];
|
|
70
|
-
};
|
|
71
68
|
} & Iterable<A> & Functor<A> & AsyncFunctor<A>;
|
|
72
69
|
|
|
73
70
|
type Converters<A> = {
|
|
@@ -87,7 +84,7 @@ type Set<A> = {
|
|
|
87
84
|
toList: () => List<A>;
|
|
88
85
|
toSet: () => Set<A>;
|
|
89
86
|
toString: () => string;
|
|
90
|
-
} & IterableType<A> & Collection<A>;
|
|
87
|
+
} & IterableType<A> & Collection<A> & Typeable<"Set">;
|
|
91
88
|
declare const Set: <A>(iterable?: Iterable<A> | IterableType<A>) => Set<A>;
|
|
92
89
|
|
|
93
90
|
type List<A> = {
|
|
@@ -120,11 +117,7 @@ type List<A> = {
|
|
|
120
117
|
toList: () => List<A>;
|
|
121
118
|
toSet: () => Set<A>;
|
|
122
119
|
toString: () => string;
|
|
123
|
-
|
|
124
|
-
_tag: string;
|
|
125
|
-
value: A[];
|
|
126
|
-
};
|
|
127
|
-
} & IterableType<A> & Typeable<"List"> & AsyncFunctor<A>;
|
|
120
|
+
} & IterableType<A> & AsyncFunctor<A> & Typeable<"List"> & Valuable<"List", A[]>;
|
|
128
121
|
declare const List: <A>(values?: Iterable<A>) => List<A>;
|
|
129
122
|
|
|
130
123
|
type TestEither<L extends Type, R extends Type> = Either<L, R> & Functor<R> & AsyncFunctor<R>;
|
|
@@ -165,7 +158,7 @@ type Either<L extends Type, R extends Type> = {
|
|
|
165
158
|
bimap: <L2 extends Type, R2 extends Type>(fl: (value: L) => L2, fr: (value: R) => R2) => Either<L2, R2>;
|
|
166
159
|
fold: <T extends Type>(onLeft: (value: L) => T, onRight: (value: R) => T) => T;
|
|
167
160
|
swap: () => Either<R, L>;
|
|
168
|
-
} & Typeable<"Left" | "Right"> & PromiseLike<R> & AsyncFunctor<R>;
|
|
161
|
+
} & Typeable<"Left" | "Right"> & Valuable<"Left" | "Right", L | R> & PromiseLike<R> & AsyncFunctor<R>;
|
|
169
162
|
declare const Either: {
|
|
170
163
|
sequence: <L extends Type, R extends Type>(eithers: Either<L, R>[]) => Either<L, R[]>;
|
|
171
164
|
traverse: <L extends Type, R extends Type, U extends Type>(arr: R[], f: (value: R) => Either<L, U>) => Either<L, U[]>;
|
|
@@ -207,12 +200,12 @@ type Map<K, V> = {
|
|
|
207
200
|
get(key: K): Option<V>;
|
|
208
201
|
getOrElse(key: K, defaultValue: V): V;
|
|
209
202
|
orElse(key: K, alternative: Option<V>): Option<V>;
|
|
210
|
-
} & SafeTraversable<K, V> & Collection<Tuple<[K, V]>>;
|
|
203
|
+
} & SafeTraversable<K, V> & Collection<Tuple<[K, V]>> & Typeable<"Map"> & Valuable<"Map", IESMap<K, V>>;
|
|
211
204
|
declare const Map: <K, V>(entries?: readonly (readonly [K, V])[] | IterableIterator<[K, V]> | null) => Map<K, V>;
|
|
212
205
|
|
|
206
|
+
type TypeNames = "Success" | "Failure";
|
|
213
207
|
type Try<T> = {
|
|
214
|
-
readonly _tag:
|
|
215
|
-
readonly value: T | undefined;
|
|
208
|
+
readonly _tag: TypeNames;
|
|
216
209
|
readonly error: Error | undefined;
|
|
217
210
|
isSuccess: () => boolean;
|
|
218
211
|
isFailure: () => boolean;
|
|
@@ -224,7 +217,7 @@ type Try<T> = {
|
|
|
224
217
|
map: <U>(f: (value: T) => U) => Try<U>;
|
|
225
218
|
flatMap: <U>(f: (value: T) => Try<U>) => Try<U>;
|
|
226
219
|
toString: () => string;
|
|
227
|
-
} & Typeable<
|
|
220
|
+
} & Typeable<TypeNames> & Valuable<TypeNames, T | Error>;
|
|
228
221
|
declare const Try: <T>(f: () => T) => Try<T>;
|
|
229
222
|
|
|
230
223
|
type Traversable<A extends Type> = Functor<A> & {
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVYU4CRRScjs = require('./chunk-VYU4CRRS.cjs');var _chunkETZOPDEDcjs = require('./chunk-ETZOPDED.cjs');var _chunkYMNGLB2Acjs = require('./chunk-YMNGLB2A.cjs');var _chunkSKWCM5HUcjs = require('./chunk-SKWCM5HU.cjs');require('./chunk-YXBYA3MQ.cjs');require('./chunk-F4X3NIWH.cjs');var _chunkNK7YQNSEcjs = require('./chunk-NK7YQNSE.cjs');require('./chunk-F2MMVEVC.cjs');require('./chunk-W4XJI2DG.cjs');require('./chunk-OTPXQIIK.cjs');require('./chunk-WRNN6RXF.cjs');exports.AppException = _chunkVYU4CRRScjs.o; exports.AppResult = _chunkVYU4CRRScjs.p; exports.AsyncTask = _chunkVYU4CRRScjs.r; exports.Base = _chunkETZOPDEDcjs.a; exports.Either = _chunkVYU4CRRScjs.n; exports.Left = _chunkVYU4CRRScjs.g; exports.List = _chunkVYU4CRRScjs.e; exports.Map = _chunkVYU4CRRScjs.s; exports.None = _chunkVYU4CRRScjs.b; exports.Option = _chunkVYU4CRRScjs.c; exports.Right = _chunkVYU4CRRScjs.f; exports.Set = _chunkVYU4CRRScjs.d; exports.Some = _chunkVYU4CRRScjs.a; exports.Task = _chunkVYU4CRRScjs.q; exports.Throwable = _chunkSKWCM5HUcjs.a; exports.Try = _chunkVYU4CRRScjs.t; exports.Tuple = _chunkNK7YQNSEcjs.a; exports.TypeCheckLeft = _chunkVYU4CRRScjs.l; exports.TypeCheckRight = _chunkVYU4CRRScjs.k; exports.Typeable = _chunkYMNGLB2Acjs.a; exports.isLeft = _chunkVYU4CRRScjs.i; exports.isRight = _chunkVYU4CRRScjs.h; exports.isTypeable = _chunkYMNGLB2Acjs.b; exports.tryCatch = _chunkVYU4CRRScjs.j; exports.tryCatchAsync = _chunkVYU4CRRScjs.m;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, Functor, SingleType, Type } from './functor/index.
|
|
2
|
-
export { Base } from './core/base/Base.
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { Identity } from './identity/Identity.
|
|
6
|
-
export { Tuple } from './tuple/Tuple.
|
|
7
|
-
export { ExtractTag, Typeable, isTypeable } from './typeable/Typeable.
|
|
8
|
-
import './valuable/Valuable.
|
|
1
|
+
export { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, Functor, SingleType, Type } from './functor/index.cjs';
|
|
2
|
+
export { Base } from './core/base/Base.cjs';
|
|
3
|
+
export { A as AppException, h as AppResult, k as AsyncTask, E as Either, I as IterableType, c as Left, L as List, M as Map, N as None, O as Option, R as Right, b as Set, S as Some, j as Task, T as TestEither, m as Traversable, l as Try, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from './index-DxmJscpB.cjs';
|
|
4
|
+
export { Throwable, ThrowableType } from './core/throwable/Throwable.cjs';
|
|
5
|
+
export { Identity } from './identity/Identity.cjs';
|
|
6
|
+
export { Tuple } from './tuple/Tuple.cjs';
|
|
7
|
+
export { ExtractTag, Typeable, isTypeable } from './typeable/Typeable.cjs';
|
|
8
|
+
import './valuable/Valuable.cjs';
|
|
9
|
+
import './map/shim.cjs';
|