functype 0.8.48 → 0.8.49

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 (125) hide show
  1. package/dist/index.d.ts +302 -9
  2. package/dist/index.mjs +2 -0
  3. package/dist/index.mjs.map +1 -0
  4. package/package.json +8 -9
  5. package/dist/chunk-3VJERXBP.js +0 -1
  6. package/dist/chunk-44WWBXBL.js +0 -1
  7. package/dist/chunk-5VTXJIR3.js +0 -1
  8. package/dist/chunk-A74BGUJY.js +0 -1
  9. package/dist/chunk-AKJ5AKY4.js +0 -1
  10. package/dist/chunk-E6RS47F7.js +0 -1
  11. package/dist/chunk-ETZOPDED.cjs +0 -1
  12. package/dist/chunk-F2MMVEVC.cjs +0 -1
  13. package/dist/chunk-F4X3NIWH.cjs +0 -1
  14. package/dist/chunk-GTEH27TN.cjs +0 -1
  15. package/dist/chunk-K3EKBPQE.js +0 -0
  16. package/dist/chunk-MGVXS4LE.js +0 -1
  17. package/dist/chunk-NK7YQNSE.cjs +0 -1
  18. package/dist/chunk-NSNLRGHP.js +0 -1
  19. package/dist/chunk-O2XFH626.js +0 -1
  20. package/dist/chunk-OTPXQIIK.cjs +0 -1
  21. package/dist/chunk-SKWCM5HU.cjs +0 -1
  22. package/dist/chunk-VYU4CRRS.cjs +0 -1
  23. package/dist/chunk-W4XJI2DG.cjs +0 -1
  24. package/dist/chunk-WRNN6RXF.cjs +0 -1
  25. package/dist/chunk-WTWWDZY6.js +0 -0
  26. package/dist/chunk-XORABVON.js +0 -0
  27. package/dist/chunk-YMNGLB2A.cjs +0 -1
  28. package/dist/chunk-YXBYA3MQ.cjs +0 -1
  29. package/dist/collections/index.cjs +0 -1
  30. package/dist/collections/index.d.cts +0 -9
  31. package/dist/collections/index.d.ts +0 -9
  32. package/dist/collections/index.js +0 -0
  33. package/dist/core/base/Base.cjs +0 -1
  34. package/dist/core/base/Base.d.cts +0 -12
  35. package/dist/core/base/Base.d.ts +0 -12
  36. package/dist/core/base/Base.js +0 -1
  37. package/dist/core/info/Info.cjs +0 -1
  38. package/dist/core/info/Info.d.cts +0 -28
  39. package/dist/core/info/Info.d.ts +0 -28
  40. package/dist/core/info/Info.js +0 -1
  41. package/dist/core/task/Task.cjs +0 -1
  42. package/dist/core/task/Task.d.cts +0 -9
  43. package/dist/core/task/Task.d.ts +0 -9
  44. package/dist/core/task/Task.js +0 -1
  45. package/dist/core/throwable/Throwable.cjs +0 -1
  46. package/dist/core/throwable/Throwable.d.cts +0 -20
  47. package/dist/core/throwable/Throwable.d.ts +0 -20
  48. package/dist/core/throwable/Throwable.js +0 -1
  49. package/dist/either/Either.cjs +0 -1
  50. package/dist/either/Either.d.cts +0 -9
  51. package/dist/either/Either.d.ts +0 -9
  52. package/dist/either/Either.js +0 -1
  53. package/dist/error/ParseError.cjs +0 -1
  54. package/dist/error/ParseError.d.cts +0 -8
  55. package/dist/error/ParseError.d.ts +0 -8
  56. package/dist/error/ParseError.js +0 -1
  57. package/dist/functor/index.cjs +0 -1
  58. package/dist/functor/index.d.cts +0 -20
  59. package/dist/functor/index.d.ts +0 -20
  60. package/dist/functor/index.js +0 -1
  61. package/dist/identity/Identity.cjs +0 -1
  62. package/dist/identity/Identity.d.cts +0 -6
  63. package/dist/identity/Identity.d.ts +0 -6
  64. package/dist/identity/Identity.js +0 -1
  65. package/dist/index-Bu5HXzs9.d.ts +0 -233
  66. package/dist/index-DxmJscpB.d.cts +0 -233
  67. package/dist/index.cjs +0 -1
  68. package/dist/index.d.cts +0 -9
  69. package/dist/index.js +0 -1
  70. package/dist/iterable/index.cjs +0 -1
  71. package/dist/iterable/index.d.cts +0 -9
  72. package/dist/iterable/index.d.ts +0 -9
  73. package/dist/iterable/index.js +0 -1
  74. package/dist/list/List.cjs +0 -1
  75. package/dist/list/List.d.cts +0 -9
  76. package/dist/list/List.d.ts +0 -9
  77. package/dist/list/List.js +0 -1
  78. package/dist/map/Map.cjs +0 -1
  79. package/dist/map/Map.d.cts +0 -9
  80. package/dist/map/Map.d.ts +0 -9
  81. package/dist/map/Map.js +0 -1
  82. package/dist/map/shim.cjs +0 -1
  83. package/dist/map/shim.d.cts +0 -4
  84. package/dist/map/shim.d.ts +0 -4
  85. package/dist/map/shim.js +0 -1
  86. package/dist/option/Option.cjs +0 -1
  87. package/dist/option/Option.d.cts +0 -9
  88. package/dist/option/Option.d.ts +0 -9
  89. package/dist/option/Option.js +0 -1
  90. package/dist/serializable/Serializable.cjs +0 -3
  91. package/dist/serializable/Serializable.d.cts +0 -16
  92. package/dist/serializable/Serializable.d.ts +0 -16
  93. package/dist/serializable/Serializable.js +0 -3
  94. package/dist/set/Set.cjs +0 -1
  95. package/dist/set/Set.d.cts +0 -9
  96. package/dist/set/Set.d.ts +0 -9
  97. package/dist/set/Set.js +0 -1
  98. package/dist/set/shim.cjs +0 -1
  99. package/dist/set/shim.d.cts +0 -4
  100. package/dist/set/shim.d.ts +0 -4
  101. package/dist/set/shim.js +0 -1
  102. package/dist/try/Try.cjs +0 -1
  103. package/dist/try/Try.d.cts +0 -9
  104. package/dist/try/Try.d.ts +0 -9
  105. package/dist/try/Try.js +0 -1
  106. package/dist/tuple/Tuple.cjs +0 -1
  107. package/dist/tuple/Tuple.d.cts +0 -14
  108. package/dist/tuple/Tuple.d.ts +0 -14
  109. package/dist/tuple/Tuple.js +0 -1
  110. package/dist/typeable/Typeable.cjs +0 -1
  111. package/dist/typeable/Typeable.d.cts +0 -8
  112. package/dist/typeable/Typeable.d.ts +0 -8
  113. package/dist/typeable/Typeable.js +0 -1
  114. package/dist/util/index.cjs +0 -1
  115. package/dist/util/index.d.cts +0 -14
  116. package/dist/util/index.d.ts +0 -14
  117. package/dist/util/index.js +0 -1
  118. package/dist/util/isIterable.cjs +0 -1
  119. package/dist/util/isIterable.d.cts +0 -3
  120. package/dist/util/isIterable.d.ts +0 -3
  121. package/dist/util/isIterable.js +0 -1
  122. package/dist/valuable/Valuable.cjs +0 -1
  123. package/dist/valuable/Valuable.d.cts +0 -9
  124. package/dist/valuable/Valuable.d.ts +0 -9
  125. package/dist/valuable/Valuable.js +0 -1
@@ -1 +0,0 @@
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;
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";
File without changes
File without changes
@@ -1 +0,0 @@
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;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var p=Map;exports.a = p;
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,9 +0,0 @@
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,9 +0,0 @@
1
- export { a as Collection, C as Converters } from '../index-Bu5HXzs9.js';
2
- import '../functor/index.js';
3
- import '../core/base/Base.js';
4
- import '../core/throwable/Throwable.js';
5
- import '../typeable/Typeable.js';
6
- import '../valuable/Valuable.js';
7
- import '../identity/Identity.js';
8
- import '../tuple/Tuple.js';
9
- import '../map/shim.js';
File without changes
@@ -1 +0,0 @@
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;
@@ -1,12 +0,0 @@
1
- /**
2
- * Base Object from which most other objects inherit
3
- * @param type
4
- * @param body
5
- * @constructor
6
- */
7
- declare function Base<T>(type: string, body: T): T & {
8
- toString(): string;
9
- _tag: string;
10
- };
11
-
12
- export { Base };
@@ -1,12 +0,0 @@
1
- /**
2
- * Base Object from which most other objects inherit
3
- * @param type
4
- * @param body
5
- * @constructor
6
- */
7
- declare function Base<T>(type: string, body: T): T & {
8
- toString(): string;
9
- _tag: string;
10
- };
11
-
12
- export { Base };
@@ -1 +0,0 @@
1
- import{a}from"../../chunk-44WWBXBL.js";import"../../chunk-AKJ5AKY4.js";import"../../chunk-O2XFH626.js";export{a as Base};
@@ -1 +0,0 @@
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;
@@ -1,28 +0,0 @@
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 };
@@ -1,28 +0,0 @@
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 };
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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;
@@ -1,9 +0,0 @@
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';
@@ -1,9 +0,0 @@
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';
4
- import '../../functor/index.js';
5
- import '../base/Base.js';
6
- import '../../valuable/Valuable.js';
7
- import '../../identity/Identity.js';
8
- import '../../tuple/Tuple.js';
9
- import '../../map/shim.js';
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSKWCM5HUcjs = require('../../chunk-SKWCM5HU.cjs');require('../../chunk-F2MMVEVC.cjs');exports.Throwable = _chunkSKWCM5HUcjs.a;
@@ -1,20 +0,0 @@
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 };
@@ -1,20 +0,0 @@
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 };
@@ -1 +0,0 @@
1
- import{a}from"../../chunk-MGVXS4LE.js";import"../../chunk-O2XFH626.js";export{a as Throwable};
@@ -1 +0,0 @@
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;
@@ -1,9 +0,0 @@
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';
@@ -1,9 +0,0 @@
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-Bu5HXzs9.js';
3
- import '../typeable/Typeable.js';
4
- import '../valuable/Valuable.js';
5
- import '../core/base/Base.js';
6
- import '../core/throwable/Throwable.js';
7
- import '../identity/Identity.js';
8
- import '../tuple/Tuple.js';
9
- import '../map/shim.js';
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGTEH27TNcjs = require('../chunk-GTEH27TN.cjs');require('../chunk-F2MMVEVC.cjs');exports.ParseError = _chunkGTEH27TNcjs.a;
@@ -1,8 +0,0 @@
1
- declare const ParseError: (message?: string) => Error & {
2
- name: "ParseError";
3
- };
4
- type ParseError = Error & {
5
- name: "ParseError";
6
- };
7
-
8
- export { ParseError };
@@ -1,8 +0,0 @@
1
- declare const ParseError: (message?: string) => Error & {
2
- name: "ParseError";
3
- };
4
- type ParseError = Error & {
5
- name: "ParseError";
6
- };
7
-
8
- export { ParseError };
@@ -1 +0,0 @@
1
- import{a}from"../chunk-E6RS47F7.js";import"../chunk-O2XFH626.js";export{a as ParseError};
@@ -1 +0,0 @@
1
- "use strict";require('../chunk-W4XJI2DG.cjs');
@@ -1,20 +0,0 @@
1
- type SingleType = unknown;
2
- type ArrayType = SingleType[];
3
- type Type = SingleType | ArrayType;
4
- type AbstractFunctor<A extends Type> = {
5
- map(f: (value: A) => Type): AbstractFunctor<Type>;
6
- flatMap(f: (value: A) => AbstractFunctor<Type>): AbstractFunctor<Type>;
7
- };
8
- type Functor<A extends Type> = AbstractFunctor<A> & {
9
- map<B extends Type>(f: (value: A) => B): Functor<B>;
10
- flatMap<B extends Type>(f: (value: A) => Functor<B>): Functor<B>;
11
- };
12
- type AsyncFunctor<A extends Type> = {
13
- flatMapAsync(f: (value: A) => PromiseLike<AsyncFunctor<A>>): PromiseLike<AsyncFunctor<A>>;
14
- };
15
- type ArrayFunctor<A extends ArrayType> = AbstractFunctor<A> & {
16
- map<U extends ArrayType>(f: (value: A) => U): ArrayFunctor<U>;
17
- flatMap<U extends ArrayType>(f: (value: A) => ArrayFunctor<U>): ArrayFunctor<U>;
18
- };
19
-
20
- export type { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, Functor, SingleType, Type };
@@ -1,20 +0,0 @@
1
- type SingleType = unknown;
2
- type ArrayType = SingleType[];
3
- type Type = SingleType | ArrayType;
4
- type AbstractFunctor<A extends Type> = {
5
- map(f: (value: A) => Type): AbstractFunctor<Type>;
6
- flatMap(f: (value: A) => AbstractFunctor<Type>): AbstractFunctor<Type>;
7
- };
8
- type Functor<A extends Type> = AbstractFunctor<A> & {
9
- map<B extends Type>(f: (value: A) => B): Functor<B>;
10
- flatMap<B extends Type>(f: (value: A) => Functor<B>): Functor<B>;
11
- };
12
- type AsyncFunctor<A extends Type> = {
13
- flatMapAsync(f: (value: A) => PromiseLike<AsyncFunctor<A>>): PromiseLike<AsyncFunctor<A>>;
14
- };
15
- type ArrayFunctor<A extends ArrayType> = AbstractFunctor<A> & {
16
- map<U extends ArrayType>(f: (value: A) => U): ArrayFunctor<U>;
17
- flatMap<U extends ArrayType>(f: (value: A) => ArrayFunctor<U>): ArrayFunctor<U>;
18
- };
19
-
20
- export type { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, Functor, SingleType, Type };
@@ -1 +0,0 @@
1
- import"../chunk-XORABVON.js";
@@ -1 +0,0 @@
1
- "use strict";require('../chunk-OTPXQIIK.cjs');
@@ -1,6 +0,0 @@
1
- type Identity<T> = {
2
- id: T;
3
- isSame?: (other: Identity<T>) => boolean;
4
- };
5
-
6
- export type { Identity };
@@ -1,6 +0,0 @@
1
- type Identity<T> = {
2
- id: T;
3
- isSame?: (other: Identity<T>) => boolean;
4
- };
5
-
6
- export type { Identity };
@@ -1 +0,0 @@
1
- import"../chunk-K3EKBPQE.js";
@@ -1,233 +0,0 @@
1
- import { Type, Functor, AsyncFunctor } from './functor/index.js';
2
- import './core/base/Base.js';
3
- import { Throwable } from './core/throwable/Throwable.js';
4
- import { Typeable, ExtractTag } from './typeable/Typeable.js';
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';
9
-
10
- declare const Some: <T extends Type>(value: T) => Option<T>;
11
- declare const None: <T extends Type>() => Option<T>;
12
- type Option<T extends Type> = {
13
- readonly _tag: "Some" | "None";
14
- readonly value: T | undefined;
15
- isEmpty: boolean;
16
- get(): T;
17
- getOrElse(defaultValue: T): T;
18
- getOrThrow(error: Error): T;
19
- orElse(alternative: Option<T>): Option<T>;
20
- orNull(): T | null;
21
- map<U extends Type>(f: (value: T) => U): Option<U>;
22
- filter(predicate: (value: T) => boolean): Option<T>;
23
- flatMap<U extends Type>(f: (value: T) => Option<U>): Option<U>;
24
- flatMapAsync<U extends Type>(f: (value: T) => Promise<Option<U>>): Promise<Option<U>>;
25
- reduce<U>(f: (acc: U, value: T) => U): U;
26
- reduceRight<U>(f: (acc: U, value: T) => U): U;
27
- fold<U>(onNone: () => U, onSome: (value: T) => U): U;
28
- foldLeft<B>(z: B): (op: (b: B, a: T) => B) => B;
29
- foldRight<B>(z: B): (op: (a: T, b: B) => B) => B;
30
- toList(): List<T>;
31
- contains(value: T): boolean;
32
- size: number;
33
- toEither<E>(left: E): Either<E, T>;
34
- toString(): string;
35
- toValue(): {
36
- _tag: "Some" | "None";
37
- value: T;
38
- };
39
- } & (Traversable<T> & Functor<T> & Typeable<"Some" | "None"> & Valuable<"Some" | "None", T> & AsyncFunctor<T>);
40
- declare const Option: {
41
- <T extends Type>(value: T | null | undefined): Option<T>;
42
- from<T>(value: T): Option<T>;
43
- none<T>(): Option<T>;
44
- };
45
-
46
- type IterableType<A extends Type> = {
47
- count(p: (x: A) => boolean): number;
48
- find(p: (a: A) => boolean): Option<A>;
49
- forEach(f: (a: A) => void): void;
50
- drop(n: number): IterableType<A>;
51
- dropRight(n: number): IterableType<A>;
52
- dropWhile(p: (a: A) => boolean): IterableType<A>;
53
- exists(p: (a: A) => boolean): boolean;
54
- filter(p: (a: A) => boolean): IterableType<A>;
55
- filterNot(p: (a: A) => boolean): IterableType<A>;
56
- flatten<B>(): IterableType<B>;
57
- reduce(f: (b: A, a: A) => A): A;
58
- reduceRight(f: (b: A, a: A) => A): A;
59
- foldLeft<B>(z: B): (op: (b: B, a: A) => B) => B;
60
- foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
61
- get head(): A;
62
- get headOption(): Option<A>;
63
- get isEmpty(): boolean;
64
- map<B extends Type>(f: (a: A) => B): IterableType<B>;
65
- flatMap<B extends Type>(f: (a: A) => IterableType<B>): IterableType<B>;
66
- get size(): number;
67
- toArray<B = A>(): readonly B[];
68
- } & Iterable<A> & Functor<A> & AsyncFunctor<A>;
69
-
70
- type Converters<A> = {
71
- toList(): List<A>;
72
- toSet(): Set<A>;
73
- toString(): string;
74
- };
75
- type Collection<A> = Converters<A>;
76
-
77
- type Set<A> = {
78
- add: (value: A) => Set<A>;
79
- remove: (value: A) => Set<A>;
80
- contains: (value: A) => boolean;
81
- has: (value: A) => boolean;
82
- map: <B>(f: (a: A) => B) => Set<B>;
83
- flatMap: <B>(f: (a: A) => IterableType<B>) => Set<B>;
84
- toList: () => List<A>;
85
- toSet: () => Set<A>;
86
- toString: () => string;
87
- } & IterableType<A> & Collection<A> & Typeable<"Set">;
88
- declare const Set: <A>(iterable?: Iterable<A> | IterableType<A>) => Set<A>;
89
-
90
- type List<A> = {
91
- readonly length: number;
92
- readonly [Symbol.iterator]: () => Iterator<A>;
93
- map: <B>(f: (a: A) => B) => List<B>;
94
- flatMap: <B>(f: (a: A) => IterableType<B>) => List<B>;
95
- flatMapAsync: <B>(f: (a: A) => PromiseLike<IterableType<B>>) => PromiseLike<List<B>>;
96
- forEach: (f: (a: A) => void) => void;
97
- count: (p: (x: A) => boolean) => number;
98
- exists: (p: (a: A) => boolean) => boolean;
99
- filter<S extends A>(predicate: (a: A) => a is S): List<S>;
100
- filter(predicate: (a: A) => unknown): List<A>;
101
- filterNot: (p: (a: A) => boolean) => List<A>;
102
- filterType: <T extends Typeable<string, unknown>>(tag: string) => List<T & A>;
103
- find: <T extends A = A>(predicate: (a: A) => boolean, tag?: ExtractTag<T>) => Option<T>;
104
- readonly head: A;
105
- readonly headOption: Option<A>;
106
- readonly isEmpty: boolean;
107
- toArray: <B = A>() => B[];
108
- reduce: (f: (prev: A, curr: A) => A) => A;
109
- reduceRight: (f: (prev: A, curr: A) => A) => A;
110
- foldLeft: <B>(z: B) => (op: (b: B, a: A) => B) => B;
111
- foldRight: <B>(z: B) => (op: (a: A, b: B) => B) => B;
112
- remove: (value: A) => List<A>;
113
- removeAt: (index: number) => List<A>;
114
- add: (item: A) => List<A>;
115
- get: (index: number) => Option<A>;
116
- concat: (other: List<A>) => List<A>;
117
- toList: () => List<A>;
118
- toSet: () => Set<A>;
119
- toString: () => string;
120
- } & IterableType<A> & AsyncFunctor<A> & Typeable<"List"> & Valuable<"List", A[]>;
121
- declare const List: <A>(values?: Iterable<A>) => List<A>;
122
-
123
- type TestEither<L extends Type, R extends Type> = Either<L, R> & Functor<R> & AsyncFunctor<R>;
124
- declare const Right: <L extends Type, R extends Type>(value: R) => Either<L, R>;
125
- declare const Left: <L extends Type, R extends Type>(value: L) => Either<L, R>;
126
- declare const isRight: <L extends Type, R extends Type>(either: Either<L, R>) => either is Either<L, R> & {
127
- value: R;
128
- };
129
- declare const isLeft: <L extends Type, R extends Type>(either: Either<L, R>) => either is Either<L, R> & {
130
- value: L;
131
- };
132
- declare const tryCatch: <L extends Type, R extends Type>(f: () => R, onError: (error: unknown) => L) => Either<L, R>;
133
- declare const TypeCheckRight: <L extends Type, R extends Type>(value: R) => TestEither<L, R>;
134
- declare const TypeCheckLeft: <L extends Type, R extends Type>(value: L) => TestEither<L, R>;
135
- declare const tryCatchAsync: <L extends Type, R extends Type>(f: () => Promise<R>, onError: (error: unknown) => L) => Promise<Either<L, R>>;
136
- type Either<L extends Type, R extends Type> = {
137
- readonly _tag: "Left" | "Right";
138
- value: L | R;
139
- isLeft: () => boolean;
140
- isRight: () => boolean;
141
- getOrElse: (defaultValue: R) => R;
142
- getOrThrow: () => R;
143
- map: <U extends Type>(f: (value: R) => U) => Either<L, U>;
144
- merge: <L1 extends Type, R1 extends Type>(other: Either<L1, R1>) => Either<L | L1, [R, R1]>;
145
- mapAsync: <U extends Type>(f: (value: R) => Promise<U>) => Promise<Either<L, U>>;
146
- flatMap: <U extends Type>(f: (value: R) => Either<L, U>) => Either<L, U>;
147
- flatMapAsync: <U extends Type>(f: (value: R) => Promise<Either<L, U>>) => Promise<Either<L, U>>;
148
- toOption: () => Option<R>;
149
- toList: () => List<R>;
150
- toString: () => string;
151
- [Symbol.iterator]: () => Iterator<R>;
152
- yield: () => Generator<R, void, unknown>;
153
- traverse: <U extends Type>(f: (value: R) => Either<L, U>) => Either<L, U[]>;
154
- lazyMap: <U extends Type>(f: (value: R) => U) => Generator<Either<L, U>, void, unknown>;
155
- tap: (f: (value: R) => void) => Either<L, R>;
156
- tapLeft: (f: (value: L) => void) => Either<L, R>;
157
- mapLeft: <L2 extends Type>(f: (value: L) => L2) => Either<L2, R>;
158
- bimap: <L2 extends Type, R2 extends Type>(fl: (value: L) => L2, fr: (value: R) => R2) => Either<L2, R2>;
159
- fold: <T extends Type>(onLeft: (value: L) => T, onRight: (value: R) => T) => T;
160
- swap: () => Either<R, L>;
161
- } & Typeable<"Left" | "Right"> & Valuable<"Left" | "Right", L | R> & PromiseLike<R> & AsyncFunctor<R>;
162
- declare const Either: {
163
- sequence: <L extends Type, R extends Type>(eithers: Either<L, R>[]) => Either<L, R[]>;
164
- traverse: <L extends Type, R extends Type, U extends Type>(arr: R[], f: (value: R) => Either<L, U>) => Either<L, U[]>;
165
- fromNullable: <L extends Type, R extends Type>(value: R | null | undefined, leftValue: L) => Either<L, R>;
166
- fromPredicate: <L extends Type, R extends Type>(value: R, predicate: (value: R) => boolean, leftValue: L) => Either<L, R>;
167
- ap: <L extends Type, R extends Type, U extends Type>(eitherF: Either<L, (value: R) => U>, eitherV: Either<L, R>) => Either<L, U>;
168
- fromPromise: <L, R>(promise: Promise<R>, onRejected: (reason: unknown) => L) => Promise<Either<L, R>>;
169
- };
170
-
171
- type AppException<T> = Either<Throwable, T>;
172
- /**
173
- * AppException factory function
174
- * @param error
175
- * @param data
176
- * @constructor
177
- */
178
- declare const AppException: <T>(error: unknown, data?: unknown) => AppException<T>;
179
- type AppResult<T> = Either<Throwable, T>;
180
- declare const AppResult: <T>(data: T) => AppResult<T>;
181
- type Task<T> = Either<Throwable, T>;
182
- declare function Task<T>(t: () => T, e?: (error: unknown) => unknown, f?: () => void): Task<T>;
183
- declare namespace Task {
184
- var success: <T>(data: T) => AppResult<T>;
185
- var fail: <T>(error: unknown) => AppException<T>;
186
- }
187
- type AsyncTask<T> = Promise<Task<T>>;
188
- declare function AsyncTask<T>(t: () => T, e?: (error: unknown) => unknown, f?: () => Promise<void> | void): AsyncTask<T>;
189
- declare namespace AsyncTask {
190
- var success: <T>(data: T) => AppResult<T>;
191
- var fail: <T>(error: unknown) => AppException<T>;
192
- }
193
-
194
- type SafeTraversable<K, V> = Omit<Traversable<Tuple<[K, V]>>, "map" | "flatMap">;
195
- type Map<K, V> = {
196
- add(item: Tuple<[K, V]>): Map<K, V>;
197
- remove(value: K): Map<K, V>;
198
- map<U>(f: (value: V) => U): Map<K, U>;
199
- flatMap<K2, V2>(f: (entry: Tuple<[K, V]>) => IterableType<[K2, V2]>): Map<K2, V2>;
200
- get(key: K): Option<V>;
201
- getOrElse(key: K, defaultValue: V): V;
202
- orElse(key: K, alternative: Option<V>): Option<V>;
203
- } & SafeTraversable<K, V> & Collection<Tuple<[K, V]>> & Typeable<"Map"> & Valuable<"Map", IESMap<K, V>>;
204
- declare const Map: <K, V>(entries?: readonly (readonly [K, V])[] | IterableIterator<[K, V]> | null) => Map<K, V>;
205
-
206
- type TypeNames = "Success" | "Failure";
207
- type Try<T> = {
208
- readonly _tag: TypeNames;
209
- readonly error: Error | undefined;
210
- isSuccess: () => boolean;
211
- isFailure: () => boolean;
212
- get: () => T;
213
- getOrElse: (defaultValue: T) => T;
214
- orElse: (alternative: Try<T>) => Try<T>;
215
- orThrow: (error: Error) => T;
216
- toEither: () => Either<Error, T>;
217
- map: <U>(f: (value: T) => U) => Try<U>;
218
- flatMap: <U>(f: (value: T) => Try<U>) => Try<U>;
219
- toString: () => string;
220
- } & Typeable<TypeNames> & Valuable<TypeNames, T | Error>;
221
- declare const Try: <T>(f: () => T) => Try<T>;
222
-
223
- type Traversable<A extends Type> = Functor<A> & {
224
- get size(): number;
225
- get isEmpty(): boolean;
226
- contains(value: A): boolean;
227
- reduce(f: (b: A, a: A) => A): A;
228
- reduceRight(f: (b: A, a: A) => A): A;
229
- foldLeft<B>(z: B): (op: (b: B, a: A) => B) => B;
230
- foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
231
- };
232
-
233
- export { AppException as A, type Converters as C, Either as E, type IterableType as I, List as L, Map as M, None as N, Option as O, Right as R, Some as S, type TestEither as T, type Collection as a, Set as b, Left as c, isLeft as d, TypeCheckRight as e, TypeCheckLeft as f, tryCatchAsync as g, AppResult as h, isRight as i, Task as j, AsyncTask as k, Try as l, type Traversable as m, tryCatch as t };