functype 0.8.40 → 0.8.41

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.
Files changed (47) hide show
  1. package/dist/{chunk-ISN32ITK.mjs → chunk-BHHQGFMH.mjs} +1 -1
  2. package/dist/{chunk-FKIJ6NNF.js → chunk-QJ7DD3ZI.js} +1 -1
  3. package/dist/collections/index.d.mts +1 -1
  4. package/dist/collections/index.d.ts +1 -1
  5. package/dist/core/task/Task.d.mts +1 -1
  6. package/dist/core/task/Task.d.ts +1 -1
  7. package/dist/core/task/Task.js +1 -1
  8. package/dist/core/task/Task.mjs +1 -1
  9. package/dist/either/Either.d.mts +1 -1
  10. package/dist/either/Either.d.ts +1 -1
  11. package/dist/either/Either.js +1 -1
  12. package/dist/either/Either.mjs +1 -1
  13. package/dist/{index-D4Mn3DW4.d.ts → index-BMHqEIkx.d.ts} +1 -2
  14. package/dist/{index-DBN7nT5K.d.mts → index-ETsbIpzu.d.mts} +1 -2
  15. package/dist/index.d.mts +2 -2
  16. package/dist/index.d.ts +2 -2
  17. package/dist/index.js +1 -1
  18. package/dist/index.mjs +1 -1
  19. package/dist/iterable/index.d.mts +1 -1
  20. package/dist/iterable/index.d.ts +1 -1
  21. package/dist/list/List.d.mts +1 -1
  22. package/dist/list/List.d.ts +1 -1
  23. package/dist/list/List.js +1 -1
  24. package/dist/list/List.mjs +1 -1
  25. package/dist/map/Map.d.mts +1 -1
  26. package/dist/map/Map.d.ts +1 -1
  27. package/dist/map/Map.js +1 -1
  28. package/dist/map/Map.mjs +1 -1
  29. package/dist/option/Option.d.mts +1 -1
  30. package/dist/option/Option.d.ts +1 -1
  31. package/dist/option/Option.js +1 -1
  32. package/dist/option/Option.mjs +1 -1
  33. package/dist/set/Set.d.mts +1 -1
  34. package/dist/set/Set.d.ts +1 -1
  35. package/dist/set/Set.js +1 -1
  36. package/dist/set/Set.mjs +1 -1
  37. package/dist/try/Try.d.mts +1 -1
  38. package/dist/try/Try.d.ts +1 -1
  39. package/dist/try/Try.js +1 -1
  40. package/dist/try/Try.mjs +1 -1
  41. package/dist/typeable/Typeable.d.mts +2 -1
  42. package/dist/typeable/Typeable.d.ts +2 -1
  43. package/dist/util/index.d.mts +1 -1
  44. package/dist/util/index.d.ts +1 -1
  45. package/dist/util/index.js +1 -1
  46. package/dist/util/index.mjs +1 -1
  47. package/package.json +1 -1
@@ -1 +1 @@
1
- import{a as b}from"./chunk-JF5YGNCO.mjs";import{a as S}from"./chunk-HD6YYUHO.mjs";import{a as h}from"./chunk-377WQNCB.mjs";import{a as v}from"./chunk-HA5XD5KC.mjs";import{a as V}from"./chunk-2I2NKDFN.mjs";import Q from"safe-stable-stringify";import w from"safe-stable-stringify";import j from"safe-stable-stringify";var A=e=>{let t=new v(e),r=u(t),p={...r,add:i=>A([...t,i]),remove:i=>{let o=new v(t);return o.delete(i),A(o)},contains:i=>t.has(i),has:i=>t.has(i),map:i=>A(r.map(i)),flatMap:i=>A(r.flatMap(i)),toList:()=>u(t),toSet:()=>p,toString:()=>`Set(${Array.from(t).toString()})`};return p},E=e=>A(e);var f=e=>{let t=Array.from(e||[]),r=o=>f(t.filter(o)),p=o=>y(t.find(o)),i={_tag:"List",[Symbol.iterator]:()=>t[Symbol.iterator](),get size(){return t.length},get length(){return t.length},map:o=>f(t.map(o)),flatMap:o=>f(t.flatMap(T=>Array.from(o(T)))),flatMapAsync:async o=>{let T=await Promise.all(t.map(async d=>await o(d)));return f(T.flatMap(d=>Array.from(d)))},forEach:o=>t.forEach(o),count:o=>t.filter(o).length,exists:o=>t.some(o),filter:r,filterNot:o=>f(t.filter(T=>!o(T))),find:p,get head(){return t[0]},get headOption(){return t.length>0?y(t[0]):c()},get isEmpty(){return t.length===0},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>T=>t.reduce(T,o),foldRight:o=>T=>t.reduceRight((d,g)=>T(g,d),o),remove:o=>f(t.filter(T=>T!==o)),removeAt:o=>o<0||o>=t.length?i:f([...t.slice(0,o),...t.slice(o+1)]),add:o=>f([...t,o]),get:o=>y(t[o]),concat:o=>f([...t,...o.toArray()]),drop:o=>f(t.slice(o)),dropRight:o=>f(t.slice(0,-o)),dropWhile:o=>f(t.slice(t.findIndex(T=>!o(T)))),flatten:()=>f(t.flatMap(o=>Array.isArray(o)?o:[o])),toList:()=>i,toSet:()=>E(t),toString:()=>`List(${j(t)})`,toValue:()=>({_tag:"List",value:t})};return i},u=e=>f(e);var O=e=>({_tag:"Right",value:e,isLeft:()=>!1,isRight:()=>!0,getOrElse:t=>e,getOrThrow:()=>e,map:t=>a(t(e)),mapAsync:t=>t(e).then(r=>a(r)).catch(r=>Promise.resolve(n(r))),merge:t=>t.isLeft()?n(t.value):a([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>n(r)),toOption:()=>m(e),toList:()=>u([e]),toString:()=>`Right(${w(e)})`,[Symbol.iterator]:function*(){yield e},yield:function*(){yield e},traverse:t=>{let r=t(e);return r.isLeft()?n(r.value):a([r.value])},lazyMap:function*(t){yield a(t(e))},tap:t=>(t(e),a(e)),tapLeft:t=>a(e),mapLeft:t=>a(e),bimap:(t,r)=>a(r(e)),fold:(t,r)=>r(e),swap:()=>n(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),K=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>n(e),mapAsync:t=>Promise.resolve(n(e)),merge:t=>n(e),flatMap:t=>n(e),flatMapAsync:t=>Promise.resolve(n(e)),toOption:()=>c(),toList:()=>u(),toString:()=>`Left(${w(e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>n(e),lazyMap:function*(t){yield n(e)},tap:t=>n(e),tapLeft:t=>(t(e),n(e)),mapLeft:t=>n(t(e)),bimap:(t,r)=>n(t(e)),fold:(t,r)=>t(e),swap:()=>a(e),then:(t,r)=>Promise.reject(e).then(null,r)}),a=e=>O(e),n=e=>K(e),ye=e=>e.isRight(),de=e=>e.isLeft(),Le=(e,t)=>{try{return a(e())}catch(r){return n(t(r))}},W=e=>O(e);console.assert(W);var D=e=>K(e);console.assert(D);var ce=async(e,t)=>{try{let r=await e();return a(r)}catch(r){return n(t(r))}},H={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return n(r.value);t.push(r.value)}return a(t)},traverse:(e,t)=>H.sequence(e.map(t)),fromNullable:(e,t)=>e==null?n(t):a(e),fromPredicate:(e,t,r)=>t(e)?a(e):n(r),ap:(e,t)=>e.flatMap(r=>t.map(r)),fromPromise:async(e,t)=>{try{let r=await e;return a(r)}catch(r){return n(t(r))}}};var x=(e,t)=>{let r=S(e,t);return{...b("AppException"),...n(r)}},U=e=>({...b("AppResult"),...a(e)});function M(e,t=p=>p,r=()=>{}){try{return U(e())}catch(p){return x(t(p))}finally{r()}}M.success=e=>U(e);M.fail=e=>x(e);async function k(e,t=p=>p,r=async()=>{}){try{let p=await e();return U(p)}catch(p){let i=await t(p);return x(i)}finally{await r()}}k.success=e=>U(e);k.fail=e=>x(e);var L=e=>{let t={values:new h(e)},r=()=>Array.from(t.values.entries()).map(([s,l])=>V([s,l])),p=s=>L(new h(t.values).set(s.toArray()[0],s.toArray()[1]).entries()),i=s=>{let l=new h(t.values);return l.delete(s)?L(l.entries()):L(t.values.entries())},o=s=>t.values.get(s[0])===s[1],T=()=>t.values.size,d=s=>L(Array.from(t.values.entries()).map(([l,q])=>[l,s(q)])),g=s=>{let l=L(t.values.entries()).toList();return L(l.flatMap(s).toArray())},F=s=>u(r()).reduce(s),I=s=>u(r()).reduceRight(s),N=s=>l=>u(r()).foldLeft(s)(l),z=s=>l=>u(r()).foldRight(s)(l),C=s=>y(t.values.get(s)),$=(s,l)=>y(t.values.get(s)).getOrElse(l),G=()=>t.values.size===0;return{add:p,remove:i,contains:o,get size(){return T()},map:d,flatMap:g,reduce:F,reduceRight:I,foldLeft:N,foldRight:z,get:C,getOrElse:$,get isEmpty(){return G()},orElse:(s,l)=>y(t.values.get(s)).orElse(l),toList:()=>u(r()),toSet:()=>E(r()),toString:()=>`Map(${r().toString()})`}},Ve=e=>L(e);import P from"safe-stable-stringify";var _=e=>({_tag:"Success",value:e,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>_(e),orThrow:t=>e,toEither:()=>a(e),map:t=>J(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${P(e)})`}),B=e=>({_tag:"Failure",value:void 0,error:e,isSuccess:()=>!1,isFailure:()=>!0,get:()=>{throw e},getOrElse:t=>t,orElse:t=>t,orThrow:t=>{throw t},toEither:()=>n(e),map:t=>B(e),flatMap:t=>B(e),toString:()=>`Failure(${P(e)}))`}),J=e=>{try{return _(e())}catch(t){return B(t instanceof Error?t:new Error(String(t)))}};var m=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,getOrThrow:()=>e,orElse:()=>m(e),orNull:()=>e,map:t=>m(t(e)),filter(t){return t(e)?m(e):R},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:()=>u([e]),contains:t=>t===e,size:1,toEither:t=>a(e),toString:()=>`Some(${Q(e)})`,toValue:()=>({_tag:"Some",value:e})}),R={_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=>R,filter(e){return R},flatMap:e=>R,flatMapAsync:async e=>R,reduce:()=>{},reduceRight:()=>{},fold:(e,t)=>e(),foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>u([]),contains:()=>!1,size:0,toEither:e=>n(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},c=()=>R,y=e=>e!=null?m(e):c();y.from=e=>y(e);y.none=()=>c();export{m as a,c as b,y as c,E as d,u as e,a as f,n as g,ye as h,de as i,Le as j,W as k,D as l,ce as m,H as n,x as o,U as p,M as q,k as r,Ve as s,J as t};
1
+ import{a as b}from"./chunk-JF5YGNCO.mjs";import{a as S}from"./chunk-HD6YYUHO.mjs";import{a as A}from"./chunk-377WQNCB.mjs";import{a as v}from"./chunk-HA5XD5KC.mjs";import{a as V}from"./chunk-2I2NKDFN.mjs";import Q from"safe-stable-stringify";import w from"safe-stable-stringify";import j from"safe-stable-stringify";var h=e=>{let t=new v(e),r=u(t),p={...r,add:i=>h([...t,i]),remove:i=>{let o=new v(t);return o.delete(i),h(o)},contains:i=>t.has(i),has:i=>t.has(i),map:i=>h(r.map(i)),flatMap:i=>h(r.flatMap(i)),toList:()=>u(t),toSet:()=>p,toString:()=>`Set(${Array.from(t).toString()})`};return p},E=e=>h(e);var f=e=>{let t=Array.from(e||[]),r=o=>f(t.filter(o)),p=o=>y(t.find(o)),i={_tag:"List",[Symbol.iterator]:()=>t[Symbol.iterator](),get size(){return t.length},get length(){return t.length},map:o=>f(t.map(o)),flatMap:o=>f(t.flatMap(T=>Array.from(o(T)))),flatMapAsync:async o=>{let T=await Promise.all(t.map(async d=>await o(d)));return f(T.flatMap(d=>Array.from(d)))},forEach:o=>t.forEach(o),count:o=>t.filter(o).length,exists:o=>t.some(o),filter:r,filterNot:o=>f(t.filter(T=>!o(T))),find:p,get head(){return t[0]},get headOption(){return t.length>0?y(t[0]):c()},get isEmpty(){return t.length===0},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>T=>t.reduce(T,o),foldRight:o=>T=>t.reduceRight((d,g)=>T(g,d),o),remove:o=>f(t.filter(T=>T!==o)),removeAt:o=>o<0||o>=t.length?i:f([...t.slice(0,o),...t.slice(o+1)]),add:o=>f([...t,o]),get:o=>y(t[o]),concat:o=>f([...t,...o.toArray()]),drop:o=>f(t.slice(o)),dropRight:o=>f(t.slice(0,-o)),dropWhile:o=>f(t.slice(t.findIndex(T=>!o(T)))),flatten:()=>f(t.flatMap(o=>Array.isArray(o)?o:[o])),toList:()=>i,toSet:()=>E(t),toString:()=>`List(${j(t)})`,toValue:()=>({_tag:"List",value:t})};return i},u=e=>f(e);var O=e=>({_tag:"Right",value:e,isLeft:()=>!1,isRight:()=>!0,getOrElse:t=>e,getOrThrow:()=>e,map:t=>a(t(e)),mapAsync:t=>t(e).then(r=>a(r)).catch(r=>Promise.resolve(n(r))),merge:t=>t.isLeft()?n(t.value):a([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>n(r)),toOption:()=>m(e),toList:()=>u([e]),toString:()=>`Right(${w(e)})`,[Symbol.iterator]:function*(){yield e},yield:function*(){yield e},traverse:t=>{let r=t(e);return r.isLeft()?n(r.value):a([r.value])},lazyMap:function*(t){yield a(t(e))},tap:t=>(t(e),a(e)),tapLeft:t=>a(e),mapLeft:t=>a(e),bimap:(t,r)=>a(r(e)),fold:(t,r)=>r(e),swap:()=>n(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),K=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>n(e),mapAsync:t=>Promise.resolve(n(e)),merge:t=>n(e),flatMap:t=>n(e),flatMapAsync:t=>Promise.resolve(n(e)),toOption:()=>c(),toList:()=>u(),toString:()=>`Left(${w(e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>n(e),lazyMap:function*(t){yield n(e)},tap:t=>n(e),tapLeft:t=>(t(e),n(e)),mapLeft:t=>n(t(e)),bimap:(t,r)=>n(t(e)),fold:(t,r)=>t(e),swap:()=>a(e),then:(t,r)=>Promise.reject(e).then(null,r)}),a=e=>O(e),n=e=>K(e),ye=e=>e.isRight(),de=e=>e.isLeft(),Le=(e,t)=>{try{return a(e())}catch(r){return n(t(r))}},W=e=>O(e);console.assert(W);var D=e=>K(e);console.assert(D);var ce=async(e,t)=>{try{let r=await e();return a(r)}catch(r){return n(t(r))}},H={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return n(r.value);t.push(r.value)}return a(t)},traverse:(e,t)=>H.sequence(e.map(t)),fromNullable:(e,t)=>e==null?n(t):a(e),fromPredicate:(e,t,r)=>t(e)?a(e):n(r),ap:(e,t)=>e.flatMap(r=>t.map(r)),fromPromise:async(e,t)=>{try{let r=await e;return a(r)}catch(r){return n(t(r))}}};var x=(e,t)=>{let r=S(e,t);return{...b("AppException"),...n(r)}},U=e=>({...b("AppResult"),...a(e)});function M(e,t=p=>p,r=()=>{}){try{return U(e())}catch(p){return x(t(p))}finally{r()}}M.success=e=>U(e);M.fail=e=>x(e);async function k(e,t=p=>p,r=async()=>{}){try{let p=await e();return U(p)}catch(p){let i=await t(p);return x(i)}finally{await r()}}k.success=e=>U(e);k.fail=e=>x(e);var L=e=>{let t={values:new A(e)},r=()=>Array.from(t.values.entries()).map(([s,l])=>V([s,l])),p=s=>L(new A(t.values).set(s.toArray()[0],s.toArray()[1]).entries()),i=s=>{let l=new A(t.values);return l.delete(s)?L(l.entries()):L(t.values.entries())},o=s=>t.values.get(s[0])===s[1],T=()=>t.values.size,d=s=>L(Array.from(t.values.entries()).map(([l,q])=>[l,s(q)])),g=s=>{let l=L(t.values.entries()).toList();return L(l.flatMap(s).toArray())},F=s=>u(r()).reduce(s),I=s=>u(r()).reduceRight(s),N=s=>l=>u(r()).foldLeft(s)(l),z=s=>l=>u(r()).foldRight(s)(l),C=s=>y(t.values.get(s)),$=(s,l)=>y(t.values.get(s)).getOrElse(l),G=()=>t.values.size===0;return{add:p,remove:i,contains:o,get size(){return T()},map:d,flatMap:g,reduce:F,reduceRight:I,foldLeft:N,foldRight:z,get:C,getOrElse:$,get isEmpty(){return G()},orElse:(s,l)=>y(t.values.get(s)).orElse(l),toList:()=>u(r()),toSet:()=>E(r()),toString:()=>`Map(${r().toString()})`}},Ve=e=>L(e);import P from"safe-stable-stringify";var _=e=>({_tag:"Success",value:e,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>_(e),orThrow:t=>e,toEither:()=>a(e),map:t=>J(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${P(e)})`}),B=e=>({_tag:"Failure",value:void 0,error:e,isSuccess:()=>!1,isFailure:()=>!0,get:()=>{throw e},getOrElse:t=>t,orElse:t=>t,orThrow:t=>{throw t},toEither:()=>n(e),map:t=>B(e),flatMap:t=>B(e),toString:()=>`Failure(${P(e)}))`}),J=e=>{try{return _(e())}catch(t){return B(t instanceof Error?t:new Error(String(t)))}};var m=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,getOrThrow:()=>e,orElse:()=>m(e),orNull:()=>e,map:t=>m(t(e)),filter(t){return t(e)?m(e):R},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:()=>u([e]),contains:t=>t===e,size:1,toEither:t=>a(e),toString:()=>`Some(${Q(e)})`,toValue:()=>({_tag:"Some",value:e})}),R={_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=>R,filter(e){return R},flatMap:e=>R,flatMapAsync:async e=>R,reduce:()=>{},reduceRight:()=>{},fold:(e,t)=>e(),foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>u([]),contains:()=>!1,size:0,toEither:e=>n(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},c=()=>R,y=e=>e!=null?m(e):c();y.from=e=>y(e);y.none=()=>c();export{m as a,c as b,y as c,E as d,u as e,a as f,n as g,ye as h,de as i,Le as j,W as k,D as l,ce as m,H as n,x as o,U as p,M as q,k as r,Ve as s,J as t};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkSQWNJC6Ojs = require('./chunk-SQWNJC6O.js');var _chunk2U34DUZUjs = require('./chunk-2U34DUZU.js');var _chunk5VTXJIR3js = require('./chunk-5VTXJIR3.js');var _chunk3VJERXBPjs = require('./chunk-3VJERXBP.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');var _safestablestringify = require('safe-stable-stringify'); var _safestablestringify2 = _interopRequireDefault(_safestablestringify);var A=e=>{let t=new (0, _chunk3VJERXBPjs.a)(e),r=u(t),p={...r,add:i=>A([...t,i]),remove:i=>{let o=new (0, _chunk3VJERXBPjs.a)(t);return o.delete(i),A(o)},contains:i=>t.has(i),has:i=>t.has(i),map:i=>A(r.map(i)),flatMap:i=>A(r.flatMap(i)),toList:()=>u(t),toSet:()=>p,toString:()=>`Set(${Array.from(t).toString()})`};return p},E= exports.d =e=>A(e);var f=e=>{let t=Array.from(e||[]),r=o=>f(t.filter(o)),p=o=>y(t.find(o)),i={_tag:"List",[Symbol.iterator]:()=>t[Symbol.iterator](),get size(){return t.length},get length(){return t.length},map:o=>f(t.map(o)),flatMap:o=>f(t.flatMap(T=>Array.from(o(T)))),flatMapAsync:async o=>{let T=await Promise.all(t.map(async d=>await o(d)));return f(T.flatMap(d=>Array.from(d)))},forEach:o=>t.forEach(o),count:o=>t.filter(o).length,exists:o=>t.some(o),filter:r,filterNot:o=>f(t.filter(T=>!o(T))),find:p,get head(){return t[0]},get headOption(){return t.length>0?y(t[0]):c()},get isEmpty(){return t.length===0},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>T=>t.reduce(T,o),foldRight:o=>T=>t.reduceRight((d,g)=>T(g,d),o),remove:o=>f(t.filter(T=>T!==o)),removeAt:o=>o<0||o>=t.length?i:f([...t.slice(0,o),...t.slice(o+1)]),add:o=>f([...t,o]),get:o=>y(t[o]),concat:o=>f([...t,...o.toArray()]),drop:o=>f(t.slice(o)),dropRight:o=>f(t.slice(0,-o)),dropWhile:o=>f(t.slice(t.findIndex(T=>!o(T)))),flatten:()=>f(t.flatMap(o=>Array.isArray(o)?o:[o])),toList:()=>i,toSet:()=>E(t),toString:()=>`List(${_safestablestringify2.default.call(void 0, t)})`,toValue:()=>({_tag:"List",value:t})};return i},u= exports.e =e=>f(e);var O=e=>({_tag:"Right",value:e,isLeft:()=>!1,isRight:()=>!0,getOrElse:t=>e,getOrThrow:()=>e,map:t=>a(t(e)),mapAsync:t=>t(e).then(r=>a(r)).catch(r=>Promise.resolve(n(r))),merge:t=>t.isLeft()?n(t.value):a([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>n(r)),toOption:()=>m(e),toList:()=>u([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()?n(r.value):a([r.value])},lazyMap:function*(t){yield a(t(e))},tap:t=>(t(e),a(e)),tapLeft:t=>a(e),mapLeft:t=>a(e),bimap:(t,r)=>a(r(e)),fold:(t,r)=>r(e),swap:()=>n(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),K=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>n(e),mapAsync:t=>Promise.resolve(n(e)),merge:t=>n(e),flatMap:t=>n(e),flatMapAsync:t=>Promise.resolve(n(e)),toOption:()=>c(),toList:()=>u(),toString:()=>`Left(${_safestablestringify2.default.call(void 0, e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>n(e),lazyMap:function*(t){yield n(e)},tap:t=>n(e),tapLeft:t=>(t(e),n(e)),mapLeft:t=>n(t(e)),bimap:(t,r)=>n(t(e)),fold:(t,r)=>t(e),swap:()=>a(e),then:(t,r)=>Promise.reject(e).then(null,r)}),a= exports.f =e=>O(e),n= exports.g =e=>K(e),ye= exports.h =e=>e.isRight(),de= exports.i =e=>e.isLeft(),Le= exports.j =(e,t)=>{try{return a(e())}catch(r){return n(t(r))}},W= exports.k =e=>O(e);console.assert(W);var D=e=>K(e);console.assert(D);var ce=async(e,t)=>{try{let r=await e();return a(r)}catch(r){return n(t(r))}},H= exports.n ={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return n(r.value);t.push(r.value)}return a(t)},traverse:(e,t)=>H.sequence(e.map(t)),fromNullable:(e,t)=>e==null?n(t):a(e),fromPredicate:(e,t,r)=>t(e)?a(e):n(r),ap:(e,t)=>e.flatMap(r=>t.map(r)),fromPromise:async(e,t)=>{try{let r=await e;return a(r)}catch(r){return n(t(r))}}};var x=(e,t)=>{let r=_chunk2U34DUZUjs.a.call(void 0, e,t);return{..._chunkSQWNJC6Ojs.a.call(void 0, "AppException"),...n(r)}},U= exports.p =e=>({..._chunkSQWNJC6Ojs.a.call(void 0, "AppResult"),...a(e)});function M(e,t=p=>p,r=()=>{}){try{return U(e())}catch(p){return x(t(p))}finally{r()}}M.success=e=>U(e);M.fail=e=>x(e);async function k(e,t=p=>p,r=async()=>{}){try{let p=await e();return U(p)}catch(p){let i=await t(p);return x(i)}finally{await r()}}k.success=e=>U(e);k.fail=e=>x(e);var L=e=>{let t={values:new (0, _chunk5VTXJIR3js.a)(e)},r=()=>Array.from(t.values.entries()).map(([s,l])=>_chunkOXLZ6UIZjs.a.call(void 0, [s,l])),p=s=>L(new (0, _chunk5VTXJIR3js.a)(t.values).set(s.toArray()[0],s.toArray()[1]).entries()),i=s=>{let l=new (0, _chunk5VTXJIR3js.a)(t.values);return l.delete(s)?L(l.entries()):L(t.values.entries())},o=s=>t.values.get(s[0])===s[1],T=()=>t.values.size,d=s=>L(Array.from(t.values.entries()).map(([l,q])=>[l,s(q)])),g=s=>{let l=L(t.values.entries()).toList();return L(l.flatMap(s).toArray())},F=s=>u(r()).reduce(s),I=s=>u(r()).reduceRight(s),N=s=>l=>u(r()).foldLeft(s)(l),z=s=>l=>u(r()).foldRight(s)(l),C=s=>y(t.values.get(s)),$=(s,l)=>y(t.values.get(s)).getOrElse(l),G=()=>t.values.size===0;return{add:p,remove:i,contains:o,get size(){return T()},map:d,flatMap:g,reduce:F,reduceRight:I,foldLeft:N,foldRight:z,get:C,getOrElse:$,get isEmpty(){return G()},orElse:(s,l)=>y(t.values.get(s)).orElse(l),toList:()=>u(r()),toSet:()=>E(r()),toString:()=>`Map(${r().toString()})`}},Ve= exports.s =e=>L(e);var _=e=>({_tag:"Success",value:e,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>_(e),orThrow:t=>e,toEither:()=>a(e),map:t=>J(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${_safestablestringify2.default.call(void 0, e)})`}),B=e=>({_tag:"Failure",value:void 0,error:e,isSuccess:()=>!1,isFailure:()=>!0,get:()=>{throw e},getOrElse:t=>t,orElse:t=>t,orThrow:t=>{throw t},toEither:()=>n(e),map:t=>B(e),flatMap:t=>B(e),toString:()=>`Failure(${_safestablestringify2.default.call(void 0, e)}))`}),J= exports.t =e=>{try{return _(e())}catch(t){return B(t instanceof Error?t:new Error(String(t)))}};var m=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,getOrThrow:()=>e,orElse:()=>m(e),orNull:()=>e,map:t=>m(t(e)),filter(t){return t(e)?m(e):R},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:()=>u([e]),contains:t=>t===e,size:1,toEither:t=>a(e),toString:()=>`Some(${_safestablestringify2.default.call(void 0, e)})`,toValue:()=>({_tag:"Some",value:e})}),R={_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=>R,filter(e){return R},flatMap:e=>R,flatMapAsync:async e=>R,reduce:()=>{},reduceRight:()=>{},fold:(e,t)=>e(),foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>u([]),contains:()=>!1,size:0,toEither:e=>n(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},c= exports.b =()=>R,y= exports.c =e=>e!=null?m(e):c();y.from=e=>y(e);y.none=()=>c();exports.a = m; exports.b = c; exports.c = y; exports.d = E; exports.e = u; exports.f = a; exports.g = n; exports.h = ye; exports.i = de; exports.j = Le; exports.k = W; exports.l = D; exports.m = ce; exports.n = H; exports.o = x; exports.p = U; exports.q = M; exports.r = k; exports.s = Ve; exports.t = J;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkSQWNJC6Ojs = require('./chunk-SQWNJC6O.js');var _chunk2U34DUZUjs = require('./chunk-2U34DUZU.js');var _chunk5VTXJIR3js = require('./chunk-5VTXJIR3.js');var _chunk3VJERXBPjs = require('./chunk-3VJERXBP.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');var _safestablestringify = require('safe-stable-stringify'); var _safestablestringify2 = _interopRequireDefault(_safestablestringify);var h=e=>{let t=new (0, _chunk3VJERXBPjs.a)(e),r=u(t),p={...r,add:i=>h([...t,i]),remove:i=>{let o=new (0, _chunk3VJERXBPjs.a)(t);return o.delete(i),h(o)},contains:i=>t.has(i),has:i=>t.has(i),map:i=>h(r.map(i)),flatMap:i=>h(r.flatMap(i)),toList:()=>u(t),toSet:()=>p,toString:()=>`Set(${Array.from(t).toString()})`};return p},E= exports.d =e=>h(e);var f=e=>{let t=Array.from(e||[]),r=o=>f(t.filter(o)),p=o=>y(t.find(o)),i={_tag:"List",[Symbol.iterator]:()=>t[Symbol.iterator](),get size(){return t.length},get length(){return t.length},map:o=>f(t.map(o)),flatMap:o=>f(t.flatMap(T=>Array.from(o(T)))),flatMapAsync:async o=>{let T=await Promise.all(t.map(async d=>await o(d)));return f(T.flatMap(d=>Array.from(d)))},forEach:o=>t.forEach(o),count:o=>t.filter(o).length,exists:o=>t.some(o),filter:r,filterNot:o=>f(t.filter(T=>!o(T))),find:p,get head(){return t[0]},get headOption(){return t.length>0?y(t[0]):c()},get isEmpty(){return t.length===0},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>T=>t.reduce(T,o),foldRight:o=>T=>t.reduceRight((d,g)=>T(g,d),o),remove:o=>f(t.filter(T=>T!==o)),removeAt:o=>o<0||o>=t.length?i:f([...t.slice(0,o),...t.slice(o+1)]),add:o=>f([...t,o]),get:o=>y(t[o]),concat:o=>f([...t,...o.toArray()]),drop:o=>f(t.slice(o)),dropRight:o=>f(t.slice(0,-o)),dropWhile:o=>f(t.slice(t.findIndex(T=>!o(T)))),flatten:()=>f(t.flatMap(o=>Array.isArray(o)?o:[o])),toList:()=>i,toSet:()=>E(t),toString:()=>`List(${_safestablestringify2.default.call(void 0, t)})`,toValue:()=>({_tag:"List",value:t})};return i},u= exports.e =e=>f(e);var O=e=>({_tag:"Right",value:e,isLeft:()=>!1,isRight:()=>!0,getOrElse:t=>e,getOrThrow:()=>e,map:t=>a(t(e)),mapAsync:t=>t(e).then(r=>a(r)).catch(r=>Promise.resolve(n(r))),merge:t=>t.isLeft()?n(t.value):a([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>n(r)),toOption:()=>m(e),toList:()=>u([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()?n(r.value):a([r.value])},lazyMap:function*(t){yield a(t(e))},tap:t=>(t(e),a(e)),tapLeft:t=>a(e),mapLeft:t=>a(e),bimap:(t,r)=>a(r(e)),fold:(t,r)=>r(e),swap:()=>n(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),K=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>n(e),mapAsync:t=>Promise.resolve(n(e)),merge:t=>n(e),flatMap:t=>n(e),flatMapAsync:t=>Promise.resolve(n(e)),toOption:()=>c(),toList:()=>u(),toString:()=>`Left(${_safestablestringify2.default.call(void 0, e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>n(e),lazyMap:function*(t){yield n(e)},tap:t=>n(e),tapLeft:t=>(t(e),n(e)),mapLeft:t=>n(t(e)),bimap:(t,r)=>n(t(e)),fold:(t,r)=>t(e),swap:()=>a(e),then:(t,r)=>Promise.reject(e).then(null,r)}),a= exports.f =e=>O(e),n= exports.g =e=>K(e),ye= exports.h =e=>e.isRight(),de= exports.i =e=>e.isLeft(),Le= exports.j =(e,t)=>{try{return a(e())}catch(r){return n(t(r))}},W= exports.k =e=>O(e);console.assert(W);var D=e=>K(e);console.assert(D);var ce=async(e,t)=>{try{let r=await e();return a(r)}catch(r){return n(t(r))}},H= exports.n ={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return n(r.value);t.push(r.value)}return a(t)},traverse:(e,t)=>H.sequence(e.map(t)),fromNullable:(e,t)=>e==null?n(t):a(e),fromPredicate:(e,t,r)=>t(e)?a(e):n(r),ap:(e,t)=>e.flatMap(r=>t.map(r)),fromPromise:async(e,t)=>{try{let r=await e;return a(r)}catch(r){return n(t(r))}}};var x=(e,t)=>{let r=_chunk2U34DUZUjs.a.call(void 0, e,t);return{..._chunkSQWNJC6Ojs.a.call(void 0, "AppException"),...n(r)}},U= exports.p =e=>({..._chunkSQWNJC6Ojs.a.call(void 0, "AppResult"),...a(e)});function M(e,t=p=>p,r=()=>{}){try{return U(e())}catch(p){return x(t(p))}finally{r()}}M.success=e=>U(e);M.fail=e=>x(e);async function k(e,t=p=>p,r=async()=>{}){try{let p=await e();return U(p)}catch(p){let i=await t(p);return x(i)}finally{await r()}}k.success=e=>U(e);k.fail=e=>x(e);var L=e=>{let t={values:new (0, _chunk5VTXJIR3js.a)(e)},r=()=>Array.from(t.values.entries()).map(([s,l])=>_chunkOXLZ6UIZjs.a.call(void 0, [s,l])),p=s=>L(new (0, _chunk5VTXJIR3js.a)(t.values).set(s.toArray()[0],s.toArray()[1]).entries()),i=s=>{let l=new (0, _chunk5VTXJIR3js.a)(t.values);return l.delete(s)?L(l.entries()):L(t.values.entries())},o=s=>t.values.get(s[0])===s[1],T=()=>t.values.size,d=s=>L(Array.from(t.values.entries()).map(([l,q])=>[l,s(q)])),g=s=>{let l=L(t.values.entries()).toList();return L(l.flatMap(s).toArray())},F=s=>u(r()).reduce(s),I=s=>u(r()).reduceRight(s),N=s=>l=>u(r()).foldLeft(s)(l),z=s=>l=>u(r()).foldRight(s)(l),C=s=>y(t.values.get(s)),$=(s,l)=>y(t.values.get(s)).getOrElse(l),G=()=>t.values.size===0;return{add:p,remove:i,contains:o,get size(){return T()},map:d,flatMap:g,reduce:F,reduceRight:I,foldLeft:N,foldRight:z,get:C,getOrElse:$,get isEmpty(){return G()},orElse:(s,l)=>y(t.values.get(s)).orElse(l),toList:()=>u(r()),toSet:()=>E(r()),toString:()=>`Map(${r().toString()})`}},Ve= exports.s =e=>L(e);var _=e=>({_tag:"Success",value:e,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>_(e),orThrow:t=>e,toEither:()=>a(e),map:t=>J(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${_safestablestringify2.default.call(void 0, e)})`}),B=e=>({_tag:"Failure",value:void 0,error:e,isSuccess:()=>!1,isFailure:()=>!0,get:()=>{throw e},getOrElse:t=>t,orElse:t=>t,orThrow:t=>{throw t},toEither:()=>n(e),map:t=>B(e),flatMap:t=>B(e),toString:()=>`Failure(${_safestablestringify2.default.call(void 0, e)}))`}),J= exports.t =e=>{try{return _(e())}catch(t){return B(t instanceof Error?t:new Error(String(t)))}};var m=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,getOrThrow:()=>e,orElse:()=>m(e),orNull:()=>e,map:t=>m(t(e)),filter(t){return t(e)?m(e):R},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:()=>u([e]),contains:t=>t===e,size:1,toEither:t=>a(e),toString:()=>`Some(${_safestablestringify2.default.call(void 0, e)})`,toValue:()=>({_tag:"Some",value:e})}),R={_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=>R,filter(e){return R},flatMap:e=>R,flatMapAsync:async e=>R,reduce:()=>{},reduceRight:()=>{},fold:(e,t)=>e(),foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>u([]),contains:()=>!1,size:0,toEither:e=>n(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},c= exports.b =()=>R,y= exports.c =e=>e!=null?m(e):c();y.from=e=>y(e);y.none=()=>c();exports.a = m; exports.b = c; exports.c = y; exports.d = E; exports.e = u; exports.f = a; exports.g = n; exports.h = ye; exports.i = de; exports.j = Le; exports.k = W; exports.l = D; exports.m = ce; exports.n = H; exports.o = x; exports.p = U; exports.q = M; exports.r = k; exports.s = Ve; exports.t = J;
@@ -1,4 +1,4 @@
1
- export { a as Collection, C as Converters } from '../index-DBN7nT5K.mjs';
1
+ export { a as Collection, C as Converters } from '../index-ETsbIpzu.mjs';
2
2
  import '../functor/index.mjs';
3
3
  import '../core/base/Base.mjs';
4
4
  import '../core/error/Throwable.mjs';
@@ -1,4 +1,4 @@
1
- export { a as Collection, C as Converters } from '../index-D4Mn3DW4.js';
1
+ export { a as Collection, C as Converters } from '../index-BMHqEIkx.js';
2
2
  import '../functor/index.js';
3
3
  import '../core/base/Base.js';
4
4
  import '../core/error/Throwable.js';
@@ -1,4 +1,4 @@
1
- export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-DBN7nT5K.mjs';
1
+ export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-ETsbIpzu.mjs';
2
2
  import '../error/Throwable.mjs';
3
3
  import '../../functor/index.mjs';
4
4
  import '../base/Base.mjs';
@@ -1,4 +1,4 @@
1
- export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-D4Mn3DW4.js';
1
+ export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-BMHqEIkx.js';
2
2
  import '../error/Throwable.js';
3
3
  import '../../functor/index.js';
4
4
  import '../base/Base.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFKIJ6NNFjs = require('../../chunk-FKIJ6NNF.js');require('../../chunk-SQWNJC6O.js');require('../../chunk-2U34DUZU.js');require('../../chunk-5VTXJIR3.js');require('../../chunk-3VJERXBP.js');require('../../chunk-5O6YELD3.js');require('../../chunk-OXLZ6UIZ.js');require('../../chunk-XORABVON.js');require('../../chunk-K3EKBPQE.js');require('../../chunk-WTWWDZY6.js');exports.AppException = _chunkFKIJ6NNFjs.o; exports.AppResult = _chunkFKIJ6NNFjs.p; exports.AsyncTask = _chunkFKIJ6NNFjs.r; exports.Task = _chunkFKIJ6NNFjs.q;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQJ7DD3ZIjs = require('../../chunk-QJ7DD3ZI.js');require('../../chunk-SQWNJC6O.js');require('../../chunk-5O6YELD3.js');require('../../chunk-2U34DUZU.js');require('../../chunk-5VTXJIR3.js');require('../../chunk-3VJERXBP.js');require('../../chunk-OXLZ6UIZ.js');require('../../chunk-K3EKBPQE.js');require('../../chunk-XORABVON.js');require('../../chunk-WTWWDZY6.js');exports.AppException = _chunkQJ7DD3ZIjs.o; exports.AppResult = _chunkQJ7DD3ZIjs.p; exports.AsyncTask = _chunkQJ7DD3ZIjs.r; exports.Task = _chunkQJ7DD3ZIjs.q;
@@ -1 +1 @@
1
- import{o as a,p as b,q as c,r as d}from"../../chunk-ISN32ITK.mjs";import"../../chunk-JF5YGNCO.mjs";import"../../chunk-HD6YYUHO.mjs";import"../../chunk-377WQNCB.mjs";import"../../chunk-HA5XD5KC.mjs";import"../../chunk-V7DKESTM.mjs";import"../../chunk-2I2NKDFN.mjs";import"../../chunk-V2J3R5IU.mjs";import"../../chunk-2ML63TYF.mjs";import"../../chunk-4H62YQ42.mjs";export{a as AppException,b as AppResult,d as AsyncTask,c as Task};
1
+ import{o as a,p as b,q as c,r as d}from"../../chunk-BHHQGFMH.mjs";import"../../chunk-JF5YGNCO.mjs";import"../../chunk-V7DKESTM.mjs";import"../../chunk-HD6YYUHO.mjs";import"../../chunk-377WQNCB.mjs";import"../../chunk-HA5XD5KC.mjs";import"../../chunk-2I2NKDFN.mjs";import"../../chunk-2ML63TYF.mjs";import"../../chunk-V2J3R5IU.mjs";import"../../chunk-4H62YQ42.mjs";export{a as AppException,b as AppResult,d as AsyncTask,c as Task};
@@ -1,5 +1,5 @@
1
1
  import '../functor/index.mjs';
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-DBN7nT5K.mjs';
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-ETsbIpzu.mjs';
3
3
  import '../typeable/Typeable.mjs';
4
4
  import '../core/base/Base.mjs';
5
5
  import '../core/error/Throwable.mjs';
@@ -1,5 +1,5 @@
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-D4Mn3DW4.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-BMHqEIkx.js';
3
3
  import '../typeable/Typeable.js';
4
4
  import '../core/base/Base.js';
5
5
  import '../core/error/Throwable.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFKIJ6NNFjs = require('../chunk-FKIJ6NNF.js');require('../chunk-SQWNJC6O.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-5O6YELD3.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');exports.Either = _chunkFKIJ6NNFjs.n; exports.Left = _chunkFKIJ6NNFjs.g; exports.Right = _chunkFKIJ6NNFjs.f; exports.TypeCheckLeft = _chunkFKIJ6NNFjs.l; exports.TypeCheckRight = _chunkFKIJ6NNFjs.k; exports.isLeft = _chunkFKIJ6NNFjs.i; exports.isRight = _chunkFKIJ6NNFjs.h; exports.tryCatch = _chunkFKIJ6NNFjs.j; exports.tryCatchAsync = _chunkFKIJ6NNFjs.m;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQJ7DD3ZIjs = require('../chunk-QJ7DD3ZI.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');require('../chunk-WTWWDZY6.js');exports.Either = _chunkQJ7DD3ZIjs.n; exports.Left = _chunkQJ7DD3ZIjs.g; exports.Right = _chunkQJ7DD3ZIjs.f; exports.TypeCheckLeft = _chunkQJ7DD3ZIjs.l; exports.TypeCheckRight = _chunkQJ7DD3ZIjs.k; exports.isLeft = _chunkQJ7DD3ZIjs.i; exports.isRight = _chunkQJ7DD3ZIjs.h; exports.tryCatch = _chunkQJ7DD3ZIjs.j; exports.tryCatchAsync = _chunkQJ7DD3ZIjs.m;
@@ -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-ISN32ITK.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";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};
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-BHHQGFMH.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-4H62YQ42.mjs";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};
@@ -3,7 +3,7 @@ import './core/base/Base.js';
3
3
  import { Throwable } from './core/error/Throwable.js';
4
4
  import './identity/Identity.js';
5
5
  import { Tuple } from './tuple/Tuple.js';
6
- import { Typeable } from './typeable/Typeable.js';
6
+ import { Typeable, TypeGuard } from './typeable/Typeable.js';
7
7
  import { Valuable } from './valuable/Valuable.js';
8
8
 
9
9
  declare const Some: <T extends Type>(value: T) => Option<T>;
@@ -90,7 +90,6 @@ type Set<A> = {
90
90
  } & IterableType<A> & Collection<A>;
91
91
  declare const Set: <A>(iterable?: Iterable<A> | IterableType<A>) => Set<A>;
92
92
 
93
- type TypeGuard<A, B extends A> = (a: A | undefined) => a is B;
94
93
  type FilterFn<A> = {
95
94
  <B extends A>(p: TypeGuard<A, B>): List<B>;
96
95
  (p: (a: A) => boolean): List<A>;
@@ -3,7 +3,7 @@ import './core/base/Base.mjs';
3
3
  import { Throwable } from './core/error/Throwable.mjs';
4
4
  import './identity/Identity.mjs';
5
5
  import { Tuple } from './tuple/Tuple.mjs';
6
- import { Typeable } from './typeable/Typeable.mjs';
6
+ import { Typeable, TypeGuard } from './typeable/Typeable.mjs';
7
7
  import { Valuable } from './valuable/Valuable.mjs';
8
8
 
9
9
  declare const Some: <T extends Type>(value: T) => Option<T>;
@@ -90,7 +90,6 @@ type Set<A> = {
90
90
  } & IterableType<A> & Collection<A>;
91
91
  declare const Set: <A>(iterable?: Iterable<A> | IterableType<A>) => Set<A>;
92
92
 
93
- type TypeGuard<A, B extends A> = (a: A | undefined) => a is B;
94
93
  type FilterFn<A> = {
95
94
  <B extends A>(p: TypeGuard<A, B>): List<B>;
96
95
  (p: (a: A) => boolean): List<A>;
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, Functor, SingleType, Type } from './functor/index.mjs';
2
2
  export { Base } from './core/base/Base.mjs';
3
3
  export { Throwable } from './core/error/Throwable.mjs';
4
- 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-DBN7nT5K.mjs';
4
+ 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-ETsbIpzu.mjs';
5
5
  export { Identity } from './identity/Identity.mjs';
6
6
  export { Tuple } from './tuple/Tuple.mjs';
7
- export { Typeable, UnTag } from './typeable/Typeable.mjs';
7
+ export { TypeGuard, Typeable, UnTag } from './typeable/Typeable.mjs';
8
8
  import './valuable/Valuable.mjs';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, Functor, SingleType, Type } from './functor/index.js';
2
2
  export { Base } from './core/base/Base.js';
3
3
  export { Throwable } from './core/error/Throwable.js';
4
- 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-D4Mn3DW4.js';
4
+ 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-BMHqEIkx.js';
5
5
  export { Identity } from './identity/Identity.js';
6
6
  export { Tuple } from './tuple/Tuple.js';
7
- export { Typeable, UnTag } from './typeable/Typeable.js';
7
+ export { TypeGuard, Typeable, UnTag } from './typeable/Typeable.js';
8
8
  import './valuable/Valuable.js';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFKIJ6NNFjs = require('./chunk-FKIJ6NNF.js');var _chunkSQWNJC6Ojs = require('./chunk-SQWNJC6O.js');var _chunk2U34DUZUjs = require('./chunk-2U34DUZU.js');require('./chunk-5VTXJIR3.js');require('./chunk-3VJERXBP.js');var _chunk5O6YELD3js = require('./chunk-5O6YELD3.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');require('./chunk-XORABVON.js');require('./chunk-K3EKBPQE.js');require('./chunk-WTWWDZY6.js');exports.AppException = _chunkFKIJ6NNFjs.o; exports.AppResult = _chunkFKIJ6NNFjs.p; exports.AsyncTask = _chunkFKIJ6NNFjs.r; exports.Base = _chunkSQWNJC6Ojs.a; exports.Either = _chunkFKIJ6NNFjs.n; exports.Left = _chunkFKIJ6NNFjs.g; exports.List = _chunkFKIJ6NNFjs.e; exports.Map = _chunkFKIJ6NNFjs.s; exports.None = _chunkFKIJ6NNFjs.b; exports.Option = _chunkFKIJ6NNFjs.c; exports.Right = _chunkFKIJ6NNFjs.f; exports.Set = _chunkFKIJ6NNFjs.d; exports.Some = _chunkFKIJ6NNFjs.a; exports.Task = _chunkFKIJ6NNFjs.q; exports.Throwable = _chunk2U34DUZUjs.a; exports.Try = _chunkFKIJ6NNFjs.t; exports.Tuple = _chunkOXLZ6UIZjs.a; exports.TypeCheckLeft = _chunkFKIJ6NNFjs.l; exports.TypeCheckRight = _chunkFKIJ6NNFjs.k; exports.Typeable = _chunk5O6YELD3js.a; exports.isLeft = _chunkFKIJ6NNFjs.i; exports.isRight = _chunkFKIJ6NNFjs.h; exports.tryCatch = _chunkFKIJ6NNFjs.j; exports.tryCatchAsync = _chunkFKIJ6NNFjs.m;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQJ7DD3ZIjs = require('./chunk-QJ7DD3ZI.js');var _chunkSQWNJC6Ojs = require('./chunk-SQWNJC6O.js');var _chunk5O6YELD3js = require('./chunk-5O6YELD3.js');var _chunk2U34DUZUjs = require('./chunk-2U34DUZU.js');require('./chunk-5VTXJIR3.js');require('./chunk-3VJERXBP.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');require('./chunk-K3EKBPQE.js');require('./chunk-XORABVON.js');require('./chunk-WTWWDZY6.js');exports.AppException = _chunkQJ7DD3ZIjs.o; exports.AppResult = _chunkQJ7DD3ZIjs.p; exports.AsyncTask = _chunkQJ7DD3ZIjs.r; exports.Base = _chunkSQWNJC6Ojs.a; exports.Either = _chunkQJ7DD3ZIjs.n; exports.Left = _chunkQJ7DD3ZIjs.g; exports.List = _chunkQJ7DD3ZIjs.e; exports.Map = _chunkQJ7DD3ZIjs.s; exports.None = _chunkQJ7DD3ZIjs.b; exports.Option = _chunkQJ7DD3ZIjs.c; exports.Right = _chunkQJ7DD3ZIjs.f; exports.Set = _chunkQJ7DD3ZIjs.d; exports.Some = _chunkQJ7DD3ZIjs.a; exports.Task = _chunkQJ7DD3ZIjs.q; exports.Throwable = _chunk2U34DUZUjs.a; exports.Try = _chunkQJ7DD3ZIjs.t; exports.Tuple = _chunkOXLZ6UIZjs.a; exports.TypeCheckLeft = _chunkQJ7DD3ZIjs.l; exports.TypeCheckRight = _chunkQJ7DD3ZIjs.k; exports.Typeable = _chunk5O6YELD3js.a; exports.isLeft = _chunkQJ7DD3ZIjs.i; exports.isRight = _chunkQJ7DD3ZIjs.h; exports.tryCatch = _chunkQJ7DD3ZIjs.j; exports.tryCatchAsync = _chunkQJ7DD3ZIjs.m;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as w,t as x}from"./chunk-ISN32ITK.mjs";import{a as b}from"./chunk-JF5YGNCO.mjs";import{a as c}from"./chunk-HD6YYUHO.mjs";import"./chunk-377WQNCB.mjs";import"./chunk-HA5XD5KC.mjs";import{a}from"./chunk-V7DKESTM.mjs";import{a as v}from"./chunk-2I2NKDFN.mjs";import"./chunk-V2J3R5IU.mjs";import"./chunk-2ML63TYF.mjs";import"./chunk-4H62YQ42.mjs";export{r as AppException,s as AppResult,u as AsyncTask,b as Base,q as Either,j as Left,h as List,w as Map,e as None,f as Option,i as Right,g as Set,d as Some,t as Task,c as Throwable,x as Try,v as Tuple,o as TypeCheckLeft,n as TypeCheckRight,a as Typeable,l as isLeft,k as isRight,m as tryCatch,p as tryCatchAsync};
1
+ import{a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as w,t as x}from"./chunk-BHHQGFMH.mjs";import{a as b}from"./chunk-JF5YGNCO.mjs";import{a}from"./chunk-V7DKESTM.mjs";import{a as c}from"./chunk-HD6YYUHO.mjs";import"./chunk-377WQNCB.mjs";import"./chunk-HA5XD5KC.mjs";import{a as v}from"./chunk-2I2NKDFN.mjs";import"./chunk-2ML63TYF.mjs";import"./chunk-V2J3R5IU.mjs";import"./chunk-4H62YQ42.mjs";export{r as AppException,s as AppResult,u as AsyncTask,b as Base,q as Either,j as Left,h as List,w as Map,e as None,f as Option,i as Right,g as Set,d as Some,t as Task,c as Throwable,x as Try,v as Tuple,o as TypeCheckLeft,n as TypeCheckRight,a as Typeable,l as isLeft,k as isRight,m as tryCatch,p as tryCatchAsync};
@@ -1,5 +1,5 @@
1
1
  import '../functor/index.mjs';
2
- export { I as IterableType } from '../index-DBN7nT5K.mjs';
2
+ export { I as IterableType } from '../index-ETsbIpzu.mjs';
3
3
  import '../core/base/Base.mjs';
4
4
  import '../core/error/Throwable.mjs';
5
5
  import '../typeable/Typeable.mjs';
@@ -1,5 +1,5 @@
1
1
  import '../functor/index.js';
2
- export { I as IterableType } from '../index-D4Mn3DW4.js';
2
+ export { I as IterableType } from '../index-BMHqEIkx.js';
3
3
  import '../core/base/Base.js';
4
4
  import '../core/error/Throwable.js';
5
5
  import '../typeable/Typeable.js';
@@ -1,5 +1,5 @@
1
1
  import '../functor/index.mjs';
2
- export { L as List } from '../index-DBN7nT5K.mjs';
2
+ export { L as List } from '../index-ETsbIpzu.mjs';
3
3
  import '../typeable/Typeable.mjs';
4
4
  import '../core/base/Base.mjs';
5
5
  import '../core/error/Throwable.mjs';
@@ -1,5 +1,5 @@
1
1
  import '../functor/index.js';
2
- export { L as List } from '../index-D4Mn3DW4.js';
2
+ export { L as List } from '../index-BMHqEIkx.js';
3
3
  import '../typeable/Typeable.js';
4
4
  import '../core/base/Base.js';
5
5
  import '../core/error/Throwable.js';
package/dist/list/List.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFKIJ6NNFjs = require('../chunk-FKIJ6NNF.js');require('../chunk-SQWNJC6O.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-5O6YELD3.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');exports.List = _chunkFKIJ6NNFjs.e;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQJ7DD3ZIjs = require('../chunk-QJ7DD3ZI.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');require('../chunk-WTWWDZY6.js');exports.List = _chunkQJ7DD3ZIjs.e;
@@ -1 +1 @@
1
- import{e as a}from"../chunk-ISN32ITK.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";export{a as List};
1
+ import{e as a}from"../chunk-BHHQGFMH.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-4H62YQ42.mjs";export{a as List};
@@ -1,4 +1,4 @@
1
- export { M as Map } from '../index-DBN7nT5K.mjs';
1
+ export { M as Map } from '../index-ETsbIpzu.mjs';
2
2
  import '../tuple/Tuple.mjs';
3
3
  import '../functor/index.mjs';
4
4
  import '../core/base/Base.mjs';
package/dist/map/Map.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { M as Map } from '../index-D4Mn3DW4.js';
1
+ export { M as Map } from '../index-BMHqEIkx.js';
2
2
  import '../tuple/Tuple.js';
3
3
  import '../functor/index.js';
4
4
  import '../core/base/Base.js';
package/dist/map/Map.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFKIJ6NNFjs = require('../chunk-FKIJ6NNF.js');require('../chunk-SQWNJC6O.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-5O6YELD3.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');exports.Map = _chunkFKIJ6NNFjs.s;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQJ7DD3ZIjs = require('../chunk-QJ7DD3ZI.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');require('../chunk-WTWWDZY6.js');exports.Map = _chunkQJ7DD3ZIjs.s;
package/dist/map/Map.mjs CHANGED
@@ -1 +1 @@
1
- import{s as a}from"../chunk-ISN32ITK.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";export{a as Map};
1
+ import{s as a}from"../chunk-BHHQGFMH.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-4H62YQ42.mjs";export{a as Map};
@@ -1,5 +1,5 @@
1
1
  import '../functor/index.mjs';
2
- export { N as None, O as Option, S as Some } from '../index-DBN7nT5K.mjs';
2
+ export { N as None, O as Option, S as Some } from '../index-ETsbIpzu.mjs';
3
3
  import '../typeable/Typeable.mjs';
4
4
  import '../valuable/Valuable.mjs';
5
5
  import '../core/base/Base.mjs';
@@ -1,5 +1,5 @@
1
1
  import '../functor/index.js';
2
- export { N as None, O as Option, S as Some } from '../index-D4Mn3DW4.js';
2
+ export { N as None, O as Option, S as Some } from '../index-BMHqEIkx.js';
3
3
  import '../typeable/Typeable.js';
4
4
  import '../valuable/Valuable.js';
5
5
  import '../core/base/Base.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFKIJ6NNFjs = require('../chunk-FKIJ6NNF.js');require('../chunk-SQWNJC6O.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-5O6YELD3.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');exports.None = _chunkFKIJ6NNFjs.b; exports.Option = _chunkFKIJ6NNFjs.c; exports.Some = _chunkFKIJ6NNFjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQJ7DD3ZIjs = require('../chunk-QJ7DD3ZI.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');require('../chunk-WTWWDZY6.js');exports.None = _chunkQJ7DD3ZIjs.b; exports.Option = _chunkQJ7DD3ZIjs.c; exports.Some = _chunkQJ7DD3ZIjs.a;
@@ -1 +1 @@
1
- import{a,b,c}from"../chunk-ISN32ITK.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";export{b as None,c as Option,a as Some};
1
+ import{a,b,c}from"../chunk-BHHQGFMH.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-4H62YQ42.mjs";export{b as None,c as Option,a as Some};
@@ -1,4 +1,4 @@
1
- export { b as Set } from '../index-DBN7nT5K.mjs';
1
+ export { b as Set } from '../index-ETsbIpzu.mjs';
2
2
  import '../functor/index.mjs';
3
3
  import '../core/base/Base.mjs';
4
4
  import '../core/error/Throwable.mjs';
package/dist/set/Set.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { b as Set } from '../index-D4Mn3DW4.js';
1
+ export { b as Set } from '../index-BMHqEIkx.js';
2
2
  import '../functor/index.js';
3
3
  import '../core/base/Base.js';
4
4
  import '../core/error/Throwable.js';
package/dist/set/Set.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFKIJ6NNFjs = require('../chunk-FKIJ6NNF.js');require('../chunk-SQWNJC6O.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-5O6YELD3.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');exports.Set = _chunkFKIJ6NNFjs.d;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQJ7DD3ZIjs = require('../chunk-QJ7DD3ZI.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');require('../chunk-WTWWDZY6.js');exports.Set = _chunkQJ7DD3ZIjs.d;
package/dist/set/Set.mjs CHANGED
@@ -1 +1 @@
1
- import{d as a}from"../chunk-ISN32ITK.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";export{a as Set};
1
+ import{d as a}from"../chunk-BHHQGFMH.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-4H62YQ42.mjs";export{a as Set};
@@ -1,4 +1,4 @@
1
- export { l as Try } from '../index-DBN7nT5K.mjs';
1
+ export { l as Try } from '../index-ETsbIpzu.mjs';
2
2
  import '../typeable/Typeable.mjs';
3
3
  import '../functor/index.mjs';
4
4
  import '../core/base/Base.mjs';
package/dist/try/Try.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { l as Try } from '../index-D4Mn3DW4.js';
1
+ export { l as Try } from '../index-BMHqEIkx.js';
2
2
  import '../typeable/Typeable.js';
3
3
  import '../functor/index.js';
4
4
  import '../core/base/Base.js';
package/dist/try/Try.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFKIJ6NNFjs = require('../chunk-FKIJ6NNF.js');require('../chunk-SQWNJC6O.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-5O6YELD3.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');exports.Try = _chunkFKIJ6NNFjs.t;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQJ7DD3ZIjs = require('../chunk-QJ7DD3ZI.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');require('../chunk-WTWWDZY6.js');exports.Try = _chunkQJ7DD3ZIjs.t;
package/dist/try/Try.mjs CHANGED
@@ -1 +1 @@
1
- import{t as a}from"../chunk-ISN32ITK.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";export{a as Try};
1
+ import{t as a}from"../chunk-BHHQGFMH.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-4H62YQ42.mjs";export{a as Try};
@@ -3,5 +3,6 @@ declare function Typeable<T extends string>(type: T): {
3
3
  };
4
4
  type Typeable<T extends string> = ReturnType<typeof Typeable<T>>;
5
5
  type UnTag<T> = Omit<T, "_tag">;
6
+ type TypeGuard<A, B extends A> = (a: A | undefined) => a is B;
6
7
 
7
- export { Typeable, type UnTag };
8
+ export { type TypeGuard, Typeable, type UnTag };
@@ -3,5 +3,6 @@ declare function Typeable<T extends string>(type: T): {
3
3
  };
4
4
  type Typeable<T extends string> = ReturnType<typeof Typeable<T>>;
5
5
  type UnTag<T> = Omit<T, "_tag">;
6
+ type TypeGuard<A, B extends A> = (a: A | undefined) => a is B;
6
7
 
7
- export { Typeable, type UnTag };
8
+ export { type TypeGuard, Typeable, type UnTag };
@@ -1,4 +1,4 @@
1
- import { E as Either } from '../index-DBN7nT5K.mjs';
1
+ import { E as Either } from '../index-ETsbIpzu.mjs';
2
2
  import { ParseError } from '../error/ParseError.mjs';
3
3
  import '../functor/index.mjs';
4
4
  import '../core/base/Base.mjs';
@@ -1,4 +1,4 @@
1
- import { E as Either } from '../index-D4Mn3DW4.js';
1
+ import { E as Either } from '../index-BMHqEIkx.js';
2
2
  import { ParseError } from '../error/ParseError.js';
3
3
  import '../functor/index.js';
4
4
  import '../core/base/Base.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE6RS47F7js = require('../chunk-E6RS47F7.js');var _chunkFKIJ6NNFjs = require('../chunk-FKIJ6NNF.js');require('../chunk-SQWNJC6O.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-5O6YELD3.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');require('../chunk-WTWWDZY6.js');var a=o=>{let r=parseInt(o,10);return isNaN(r)?_chunkFKIJ6NNFjs.g.call(void 0, _chunkE6RS47F7js.a.call(void 0, `${r}`)):_chunkFKIJ6NNFjs.f.call(void 0, r)};exports.parseNumber = a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE6RS47F7js = require('../chunk-E6RS47F7.js');var _chunkQJ7DD3ZIjs = require('../chunk-QJ7DD3ZI.js');require('../chunk-SQWNJC6O.js');require('../chunk-5O6YELD3.js');require('../chunk-2U34DUZU.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');require('../chunk-WTWWDZY6.js');var a=o=>{let r=parseInt(o,10);return isNaN(r)?_chunkQJ7DD3ZIjs.g.call(void 0, _chunkE6RS47F7js.a.call(void 0, `${r}`)):_chunkQJ7DD3ZIjs.f.call(void 0, r)};exports.parseNumber = a;
@@ -1 +1 @@
1
- import{a as s}from"../chunk-VK5GL6NM.mjs";import{f as e,g as t}from"../chunk-ISN32ITK.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-4H62YQ42.mjs";var a=o=>{let r=parseInt(o,10);return isNaN(r)?t(s(`${r}`)):e(r)};export{a as parseNumber};
1
+ import{a as s}from"../chunk-VK5GL6NM.mjs";import{f as e,g as t}from"../chunk-BHHQGFMH.mjs";import"../chunk-JF5YGNCO.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-HD6YYUHO.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-4H62YQ42.mjs";var a=o=>{let r=parseInt(o,10);return isNaN(r)?t(s(`${r}`)):e(r)};export{a as parseNumber};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functype",
3
- "version": "0.8.40",
3
+ "version": "0.8.41",
4
4
  "description": "A smallish functional library for TypeScript",
5
5
  "author": "jordan.burke@gmail.com",
6
6
  "license": "MIT",