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,233 +0,0 @@
1
- import { Type, Functor, AsyncFunctor } from './functor/index.cjs';
2
- import './core/base/Base.cjs';
3
- import { Throwable } from './core/throwable/Throwable.cjs';
4
- import { Typeable, ExtractTag } from './typeable/Typeable.cjs';
5
- import { Valuable } from './valuable/Valuable.cjs';
6
- import './identity/Identity.cjs';
7
- import { Tuple } from './tuple/Tuple.cjs';
8
- import { IESMap } from './map/shim.cjs';
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 };
package/dist/index.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVYU4CRRScjs = require('./chunk-VYU4CRRS.cjs');var _chunkETZOPDEDcjs = require('./chunk-ETZOPDED.cjs');var _chunkYMNGLB2Acjs = require('./chunk-YMNGLB2A.cjs');var _chunkSKWCM5HUcjs = require('./chunk-SKWCM5HU.cjs');require('./chunk-YXBYA3MQ.cjs');require('./chunk-F4X3NIWH.cjs');var _chunkNK7YQNSEcjs = require('./chunk-NK7YQNSE.cjs');require('./chunk-F2MMVEVC.cjs');require('./chunk-W4XJI2DG.cjs');require('./chunk-OTPXQIIK.cjs');require('./chunk-WRNN6RXF.cjs');exports.AppException = _chunkVYU4CRRScjs.o; exports.AppResult = _chunkVYU4CRRScjs.p; exports.AsyncTask = _chunkVYU4CRRScjs.r; exports.Base = _chunkETZOPDEDcjs.a; exports.Either = _chunkVYU4CRRScjs.n; exports.Left = _chunkVYU4CRRScjs.g; exports.List = _chunkVYU4CRRScjs.e; exports.Map = _chunkVYU4CRRScjs.s; exports.None = _chunkVYU4CRRScjs.b; exports.Option = _chunkVYU4CRRScjs.c; exports.Right = _chunkVYU4CRRScjs.f; exports.Set = _chunkVYU4CRRScjs.d; exports.Some = _chunkVYU4CRRScjs.a; exports.Task = _chunkVYU4CRRScjs.q; exports.Throwable = _chunkSKWCM5HUcjs.a; exports.Try = _chunkVYU4CRRScjs.t; exports.Tuple = _chunkNK7YQNSEcjs.a; exports.TypeCheckLeft = _chunkVYU4CRRScjs.l; exports.TypeCheckRight = _chunkVYU4CRRScjs.k; exports.Typeable = _chunkYMNGLB2Acjs.a; exports.isLeft = _chunkVYU4CRRScjs.i; exports.isRight = _chunkVYU4CRRScjs.h; exports.isTypeable = _chunkYMNGLB2Acjs.b; exports.tryCatch = _chunkVYU4CRRScjs.j; exports.tryCatchAsync = _chunkVYU4CRRScjs.m;
package/dist/index.d.cts DELETED
@@ -1,9 +0,0 @@
1
- export { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, Functor, SingleType, Type } from './functor/index.cjs';
2
- export { Base } from './core/base/Base.cjs';
3
- export { A as AppException, h as AppResult, k as AsyncTask, E as Either, I as IterableType, c as Left, L as List, M as Map, N as None, O as Option, R as Right, b as Set, S as Some, j as Task, T as TestEither, m as Traversable, l as Try, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from './index-DxmJscpB.cjs';
4
- export { Throwable, ThrowableType } from './core/throwable/Throwable.cjs';
5
- export { Identity } from './identity/Identity.cjs';
6
- export { Tuple } from './tuple/Tuple.cjs';
7
- export { ExtractTag, Typeable, isTypeable } from './typeable/Typeable.cjs';
8
- import './valuable/Valuable.cjs';
9
- import './map/shim.cjs';
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- import{a as e,b as f,c as g,d as h,e as i,f as j,g as k,h as l,i as m,j as n,k as o,l as p,m as q,n as r,o as s,p as t,q as u,r as v,s as x,t as y}from"./chunk-A74BGUJY.js";import{a as c}from"./chunk-44WWBXBL.js";import{a,b}from"./chunk-AKJ5AKY4.js";import{a as d}from"./chunk-MGVXS4LE.js";import"./chunk-5VTXJIR3.js";import"./chunk-3VJERXBP.js";import{a as w}from"./chunk-NSNLRGHP.js";import"./chunk-O2XFH626.js";import"./chunk-XORABVON.js";import"./chunk-K3EKBPQE.js";import"./chunk-WTWWDZY6.js";export{s as AppException,t as AppResult,v as AsyncTask,c as Base,r as Either,k as Left,i as List,x as Map,f as None,g as Option,j as Right,h as Set,e as Some,u as Task,d as Throwable,y as Try,w as Tuple,p as TypeCheckLeft,o as TypeCheckRight,a as Typeable,m as isLeft,l as isRight,b as isTypeable,n as tryCatch,q as tryCatchAsync};
@@ -1 +0,0 @@
1
- "use strict";require('../chunk-WRNN6RXF.cjs');
@@ -1,9 +0,0 @@
1
- import '../functor/index.cjs';
2
- export { I as IterableType } from '../index-DxmJscpB.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
- import '../functor/index.js';
2
- export { I as IterableType } from '../index-Bu5HXzs9.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';
@@ -1 +0,0 @@
1
- import"../chunk-WTWWDZY6.js";
@@ -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.List = _chunkVYU4CRRScjs.e;
@@ -1,9 +0,0 @@
1
- import '../functor/index.cjs';
2
- export { L as List } 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 { L as List } 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';
package/dist/list/List.js DELETED
@@ -1 +0,0 @@
1
- import{e as a}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 List};
package/dist/map/Map.cjs DELETED
@@ -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.Map = _chunkVYU4CRRScjs.s;
@@ -1,9 +0,0 @@
1
- export { M as Map } from '../index-DxmJscpB.cjs';
2
- import '../tuple/Tuple.cjs';
3
- import '../valuable/Valuable.cjs';
4
- import './shim.cjs';
5
- import '../typeable/Typeable.cjs';
6
- import '../functor/index.cjs';
7
- import '../core/base/Base.cjs';
8
- import '../core/throwable/Throwable.cjs';
9
- import '../identity/Identity.cjs';
package/dist/map/Map.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export { M as Map } from '../index-Bu5HXzs9.js';
2
- import '../tuple/Tuple.js';
3
- import '../valuable/Valuable.js';
4
- import './shim.js';
5
- import '../typeable/Typeable.js';
6
- import '../functor/index.js';
7
- import '../core/base/Base.js';
8
- import '../core/throwable/Throwable.js';
9
- import '../identity/Identity.js';
package/dist/map/Map.js DELETED
@@ -1 +0,0 @@
1
- import{s as a}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 Map};
package/dist/map/shim.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYXBYA3MQcjs = require('../chunk-YXBYA3MQ.cjs');require('../chunk-F2MMVEVC.cjs');exports.ESMap = _chunkYXBYA3MQcjs.a;
@@ -1,4 +0,0 @@
1
- type IESMap<K, V> = Map<K, V>;
2
- declare const ESMap: MapConstructor;
3
-
4
- export { ESMap, type IESMap };
@@ -1,4 +0,0 @@
1
- type IESMap<K, V> = Map<K, V>;
2
- declare const ESMap: MapConstructor;
3
-
4
- export { ESMap, type IESMap };
package/dist/map/shim.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"../chunk-5VTXJIR3.js";import"../chunk-O2XFH626.js";export{a as ESMap};
@@ -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.None = _chunkVYU4CRRScjs.b; exports.Option = _chunkVYU4CRRScjs.c; exports.Some = _chunkVYU4CRRScjs.a;
@@ -1,9 +0,0 @@
1
- import '../functor/index.cjs';
2
- import '../typeable/Typeable.cjs';
3
- import '../valuable/Valuable.cjs';
4
- export { N as None, O as Option, S as Some } from '../index-DxmJscpB.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
- import '../typeable/Typeable.js';
3
- import '../valuable/Valuable.js';
4
- export { N as None, O as Option, S as Some } from '../index-Bu5HXzs9.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{a,b,c}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{b as None,c as Option,a as Some};
@@ -1,3 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('../chunk-F2MMVEVC.cjs');var _safestablestringify = require('safe-stable-stringify'); var _safestablestringify2 = _interopRequireDefault(_safestablestringify);function a(e,t){return{...e,...t}}var i=a({name:"John",age:30},{json:{toJSON(){return _safestablestringify2.default.call(void 0, this)},fromJSON(e){return JSON.parse(e)}},yaml:{toYAML(){return Object.entries(this).map(([e,t])=>`${e}: ${t}`).join(`
2
- `)},fromYAML(e){return Object.fromEntries(e.split(`
3
- `).map(t=>t.split(": ")))}}});console.log(i.toJSON());console.log(i.toYAML());exports.createSerializable = a;
@@ -1,16 +0,0 @@
1
- type SerializableTypes = "json" | "yaml";
2
- type SerializationMethods<T> = {
3
- json: {
4
- toJSON(): string;
5
- fromJSON(json: string): T;
6
- };
7
- yaml: {
8
- toYAML(): string;
9
- fromYAML(yaml: string): T;
10
- };
11
- };
12
- type Serializable<STypes extends SerializableTypes[], T> = T & (STypes extends [] ? NonNullable<unknown> : STypes extends [infer First, ...infer Rest] ? First extends keyof SerializationMethods<T> ? SerializationMethods<T>[First] & Serializable<Rest extends SerializableTypes[] ? Rest : [], T> : never : never);
13
- type SupportedSerializationTypes<T> = T extends Serializable<infer Types, never> ? Types : never;
14
- declare function createSerializable<STypes extends SerializableTypes[], T>(obj: T, serializationMethods: Pick<SerializationMethods<T>, STypes[number]>): Serializable<STypes, T>;
15
-
16
- export { type Serializable, type SerializableTypes, type SupportedSerializationTypes, createSerializable };
@@ -1,16 +0,0 @@
1
- type SerializableTypes = "json" | "yaml";
2
- type SerializationMethods<T> = {
3
- json: {
4
- toJSON(): string;
5
- fromJSON(json: string): T;
6
- };
7
- yaml: {
8
- toYAML(): string;
9
- fromYAML(yaml: string): T;
10
- };
11
- };
12
- type Serializable<STypes extends SerializableTypes[], T> = T & (STypes extends [] ? NonNullable<unknown> : STypes extends [infer First, ...infer Rest] ? First extends keyof SerializationMethods<T> ? SerializationMethods<T>[First] & Serializable<Rest extends SerializableTypes[] ? Rest : [], T> : never : never);
13
- type SupportedSerializationTypes<T> = T extends Serializable<infer Types, never> ? Types : never;
14
- declare function createSerializable<STypes extends SerializableTypes[], T>(obj: T, serializationMethods: Pick<SerializationMethods<T>, STypes[number]>): Serializable<STypes, T>;
15
-
16
- export { type Serializable, type SerializableTypes, type SupportedSerializationTypes, createSerializable };
@@ -1,3 +0,0 @@
1
- import"../chunk-O2XFH626.js";import r from"safe-stable-stringify";function a(e,t){return{...e,...t}}var i=a({name:"John",age:30},{json:{toJSON(){return r(this)},fromJSON(e){return JSON.parse(e)}},yaml:{toYAML(){return Object.entries(this).map(([e,t])=>`${e}: ${t}`).join(`
2
- `)},fromYAML(e){return Object.fromEntries(e.split(`
3
- `).map(t=>t.split(": ")))}}});console.log(i.toJSON());console.log(i.toYAML());export{a as createSerializable};
package/dist/set/Set.cjs DELETED
@@ -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.Set = _chunkVYU4CRRScjs.d;
@@ -1,9 +0,0 @@
1
- export { b as Set } from '../index-DxmJscpB.cjs';
2
- import '../typeable/Typeable.cjs';
3
- import '../functor/index.cjs';
4
- import '../core/base/Base.cjs';
5
- import '../core/throwable/Throwable.cjs';
6
- import '../valuable/Valuable.cjs';
7
- import '../identity/Identity.cjs';
8
- import '../tuple/Tuple.cjs';
9
- import '../map/shim.cjs';
package/dist/set/Set.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export { b as Set } from '../index-Bu5HXzs9.js';
2
- import '../typeable/Typeable.js';
3
- import '../functor/index.js';
4
- import '../core/base/Base.js';
5
- import '../core/throwable/Throwable.js';
6
- import '../valuable/Valuable.js';
7
- import '../identity/Identity.js';
8
- import '../tuple/Tuple.js';
9
- import '../map/shim.js';
package/dist/set/Set.js DELETED
@@ -1 +0,0 @@
1
- import{d as a}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 Set};
package/dist/set/shim.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF4X3NIWHcjs = require('../chunk-F4X3NIWH.cjs');require('../chunk-F2MMVEVC.cjs');exports.ESSet = _chunkF4X3NIWHcjs.a;
@@ -1,4 +0,0 @@
1
- type IESSet<T> = Set<T>;
2
- declare const ESSet: SetConstructor;
3
-
4
- export { ESSet, type IESSet };
@@ -1,4 +0,0 @@
1
- type IESSet<T> = Set<T>;
2
- declare const ESSet: SetConstructor;
3
-
4
- export { ESSet, type IESSet };
package/dist/set/shim.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"../chunk-3VJERXBP.js";import"../chunk-O2XFH626.js";export{a as ESSet};
package/dist/try/Try.cjs DELETED
@@ -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.Try = _chunkVYU4CRRScjs.t;
@@ -1,9 +0,0 @@
1
- export { l as Try } from '../index-DxmJscpB.cjs';
2
- import '../typeable/Typeable.cjs';
3
- import '../valuable/Valuable.cjs';
4
- import '../functor/index.cjs';
5
- import '../core/base/Base.cjs';
6
- import '../core/throwable/Throwable.cjs';
7
- import '../identity/Identity.cjs';
8
- import '../tuple/Tuple.cjs';
9
- import '../map/shim.cjs';
package/dist/try/Try.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export { l as Try } from '../index-Bu5HXzs9.js';
2
- import '../typeable/Typeable.js';
3
- import '../valuable/Valuable.js';
4
- import '../functor/index.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';
package/dist/try/Try.js DELETED
@@ -1 +0,0 @@
1
- import{t as a}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 Try};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNK7YQNSEcjs = require('../chunk-NK7YQNSE.cjs');require('../chunk-F2MMVEVC.cjs');exports.Tuple = _chunkNK7YQNSEcjs.a;
@@ -1,14 +0,0 @@
1
- import { ArrayType, ArrayFunctor } from '../functor/index.cjs';
2
- import { Typeable } from '../typeable/Typeable.cjs';
3
- import { Valuable } from '../valuable/Valuable.cjs';
4
-
5
- type Tuple<T extends ArrayType> = {
6
- get<K extends number>(index: K): T[K];
7
- map<U extends ArrayType>(f: (value: T) => U): Tuple<U>;
8
- flatMap<U extends ArrayType>(f: (value: T) => Tuple<U>): Tuple<U>;
9
- toArray(): T;
10
- [Symbol.iterator](): Iterator<T[number]>;
11
- } & ArrayFunctor<T> & Typeable<"Tuple"> & Valuable<"Tuple", T>;
12
- declare const Tuple: <T extends ArrayType>(values: T) => Tuple<T>;
13
-
14
- export { Tuple };
@@ -1,14 +0,0 @@
1
- import { ArrayType, ArrayFunctor } from '../functor/index.js';
2
- import { Typeable } from '../typeable/Typeable.js';
3
- import { Valuable } from '../valuable/Valuable.js';
4
-
5
- type Tuple<T extends ArrayType> = {
6
- get<K extends number>(index: K): T[K];
7
- map<U extends ArrayType>(f: (value: T) => U): Tuple<U>;
8
- flatMap<U extends ArrayType>(f: (value: T) => Tuple<U>): Tuple<U>;
9
- toArray(): T;
10
- [Symbol.iterator](): Iterator<T[number]>;
11
- } & ArrayFunctor<T> & Typeable<"Tuple"> & Valuable<"Tuple", T>;
12
- declare const Tuple: <T extends ArrayType>(values: T) => Tuple<T>;
13
-
14
- export { Tuple };
@@ -1 +0,0 @@
1
- import{a}from"../chunk-NSNLRGHP.js";import"../chunk-O2XFH626.js";export{a as Tuple};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYMNGLB2Acjs = require('../chunk-YMNGLB2A.cjs');require('../chunk-F2MMVEVC.cjs');exports.Typeable = _chunkYMNGLB2Acjs.a; exports.isTypeable = _chunkYMNGLB2Acjs.b;
@@ -1,8 +0,0 @@
1
- type ExtractTag<T> = T extends Typeable<infer Tag, unknown> ? Tag : never;
2
- type Typeable<Tag extends string, T = object> = T & {
3
- readonly _tag: Tag;
4
- };
5
- declare function Typeable<Tag extends string, T>(tag: Tag, data: T): Typeable<Tag, T>;
6
- declare function isTypeable<T>(value: unknown, tag: string): value is T;
7
-
8
- export { type ExtractTag, Typeable, isTypeable };
@@ -1,8 +0,0 @@
1
- type ExtractTag<T> = T extends Typeable<infer Tag, unknown> ? Tag : never;
2
- type Typeable<Tag extends string, T = object> = T & {
3
- readonly _tag: Tag;
4
- };
5
- declare function Typeable<Tag extends string, T>(tag: Tag, data: T): Typeable<Tag, T>;
6
- declare function isTypeable<T>(value: unknown, tag: string): value is T;
7
-
8
- export { type ExtractTag, Typeable, isTypeable };
@@ -1 +0,0 @@
1
- import{a,b}from"../chunk-AKJ5AKY4.js";import"../chunk-O2XFH626.js";export{a as Typeable,b as isTypeable};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGTEH27TNcjs = require('../chunk-GTEH27TN.cjs');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');var a=o=>{let r=parseInt(o,10);return isNaN(r)?_chunkVYU4CRRScjs.g.call(void 0, _chunkGTEH27TNcjs.a.call(void 0, `${r}`)):_chunkVYU4CRRScjs.f.call(void 0, r)};exports.parseNumber = a;
@@ -1,14 +0,0 @@
1
- import { E as Either } from '../index-DxmJscpB.cjs';
2
- import { ParseError } from '../error/ParseError.cjs';
3
- import '../functor/index.cjs';
4
- import '../core/base/Base.cjs';
5
- import '../core/throwable/Throwable.cjs';
6
- import '../typeable/Typeable.cjs';
7
- import '../valuable/Valuable.cjs';
8
- import '../identity/Identity.cjs';
9
- import '../tuple/Tuple.cjs';
10
- import '../map/shim.cjs';
11
-
12
- declare const parseNumber: (input: string) => Either<ParseError, number>;
13
-
14
- export { parseNumber };
@@ -1,14 +0,0 @@
1
- import { E as Either } from '../index-Bu5HXzs9.js';
2
- import { ParseError } from '../error/ParseError.js';
3
- import '../functor/index.js';
4
- import '../core/base/Base.js';
5
- import '../core/throwable/Throwable.js';
6
- import '../typeable/Typeable.js';
7
- import '../valuable/Valuable.js';
8
- import '../identity/Identity.js';
9
- import '../tuple/Tuple.js';
10
- import '../map/shim.js';
11
-
12
- declare const parseNumber: (input: string) => Either<ParseError, number>;
13
-
14
- export { parseNumber };