@duplojs/utils 1.1.7 → 1.1.9

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 (313) hide show
  1. package/dist/array/reduce.cjs +1 -0
  2. package/dist/array/reduce.mjs +1 -0
  3. package/dist/array/reduceRight.cjs +1 -0
  4. package/dist/array/reduceRight.mjs +1 -0
  5. package/dist/common/globalStore.cjs +21 -0
  6. package/dist/common/globalStore.d.ts +7 -0
  7. package/dist/common/globalStore.mjs +19 -0
  8. package/dist/common/index.d.ts +1 -0
  9. package/dist/common/instanceOf.cjs +1 -0
  10. package/dist/common/instanceOf.mjs +1 -0
  11. package/dist/common/kind.cjs +12 -3
  12. package/dist/common/kind.d.ts +12 -3
  13. package/dist/common/kind.mjs +11 -4
  14. package/dist/common/wrapValue.cjs +4 -0
  15. package/dist/common/wrapValue.d.ts +1 -0
  16. package/dist/common/wrapValue.mjs +4 -1
  17. package/dist/dataParser/base.cjs +4 -3
  18. package/dist/dataParser/base.d.ts +2 -2
  19. package/dist/dataParser/base.mjs +4 -3
  20. package/dist/dataParser/baseExtended.cjs +3 -2
  21. package/dist/dataParser/baseExtended.d.ts +1 -1
  22. package/dist/dataParser/baseExtended.mjs +3 -2
  23. package/dist/dataParser/error.cjs +4 -4
  24. package/dist/dataParser/error.d.ts +3 -3
  25. package/dist/dataParser/error.mjs +4 -4
  26. package/dist/dataParser/extended/array.cjs +1 -0
  27. package/dist/dataParser/extended/array.mjs +1 -0
  28. package/dist/dataParser/extended/bigint.cjs +1 -0
  29. package/dist/dataParser/extended/bigint.mjs +1 -0
  30. package/dist/dataParser/extended/boolean.cjs +1 -0
  31. package/dist/dataParser/extended/boolean.mjs +1 -0
  32. package/dist/dataParser/extended/coerce/bigint.cjs +1 -0
  33. package/dist/dataParser/extended/coerce/bigint.mjs +1 -0
  34. package/dist/dataParser/extended/coerce/boolean.cjs +1 -0
  35. package/dist/dataParser/extended/coerce/boolean.mjs +1 -0
  36. package/dist/dataParser/extended/coerce/empty.cjs +1 -0
  37. package/dist/dataParser/extended/coerce/empty.mjs +1 -0
  38. package/dist/dataParser/extended/coerce/nil.cjs +1 -0
  39. package/dist/dataParser/extended/coerce/nil.mjs +1 -0
  40. package/dist/dataParser/extended/coerce/number.cjs +1 -0
  41. package/dist/dataParser/extended/coerce/number.mjs +1 -0
  42. package/dist/dataParser/extended/coerce/string.cjs +1 -0
  43. package/dist/dataParser/extended/coerce/string.mjs +1 -0
  44. package/dist/dataParser/extended/empty.cjs +1 -0
  45. package/dist/dataParser/extended/empty.mjs +1 -0
  46. package/dist/dataParser/extended/lazy.cjs +1 -0
  47. package/dist/dataParser/extended/lazy.mjs +1 -0
  48. package/dist/dataParser/extended/literal.cjs +1 -0
  49. package/dist/dataParser/extended/literal.mjs +1 -0
  50. package/dist/dataParser/extended/nil.cjs +1 -0
  51. package/dist/dataParser/extended/nil.mjs +1 -0
  52. package/dist/dataParser/extended/nullable.cjs +1 -0
  53. package/dist/dataParser/extended/nullable.mjs +1 -0
  54. package/dist/dataParser/extended/number.cjs +1 -0
  55. package/dist/dataParser/extended/number.mjs +1 -0
  56. package/dist/dataParser/extended/object.cjs +1 -0
  57. package/dist/dataParser/extended/object.mjs +1 -0
  58. package/dist/dataParser/extended/optional.cjs +1 -0
  59. package/dist/dataParser/extended/optional.mjs +1 -0
  60. package/dist/dataParser/extended/pipe.cjs +1 -0
  61. package/dist/dataParser/extended/pipe.mjs +1 -0
  62. package/dist/dataParser/extended/record.cjs +1 -0
  63. package/dist/dataParser/extended/record.mjs +1 -0
  64. package/dist/dataParser/extended/string.cjs +1 -0
  65. package/dist/dataParser/extended/string.mjs +1 -0
  66. package/dist/dataParser/extended/templateLiteral.cjs +1 -0
  67. package/dist/dataParser/extended/templateLiteral.mjs +1 -0
  68. package/dist/dataParser/extended/transform.cjs +1 -0
  69. package/dist/dataParser/extended/transform.mjs +1 -0
  70. package/dist/dataParser/extended/tuple.cjs +1 -0
  71. package/dist/dataParser/extended/tuple.mjs +1 -0
  72. package/dist/dataParser/extended/union.cjs +1 -0
  73. package/dist/dataParser/extended/union.mjs +1 -0
  74. package/dist/dataParser/extended/unknown.cjs +1 -0
  75. package/dist/dataParser/extended/unknown.mjs +1 -0
  76. package/dist/dataParser/kind.cjs +10 -0
  77. package/dist/dataParser/kind.d.ts +1 -0
  78. package/dist/dataParser/kind.mjs +8 -0
  79. package/dist/dataParser/parsers/array/checkers/max.cjs +2 -2
  80. package/dist/dataParser/parsers/array/checkers/max.d.ts +1 -1
  81. package/dist/dataParser/parsers/array/checkers/max.mjs +2 -2
  82. package/dist/dataParser/parsers/array/checkers/min.cjs +2 -2
  83. package/dist/dataParser/parsers/array/checkers/min.d.ts +1 -1
  84. package/dist/dataParser/parsers/array/checkers/min.mjs +2 -2
  85. package/dist/dataParser/parsers/array/index.cjs +2 -2
  86. package/dist/dataParser/parsers/array/index.d.ts +1 -1
  87. package/dist/dataParser/parsers/array/index.mjs +2 -2
  88. package/dist/dataParser/parsers/bigint/checkers/max.cjs +2 -2
  89. package/dist/dataParser/parsers/bigint/checkers/max.d.ts +1 -1
  90. package/dist/dataParser/parsers/bigint/checkers/max.mjs +2 -2
  91. package/dist/dataParser/parsers/bigint/checkers/min.cjs +2 -2
  92. package/dist/dataParser/parsers/bigint/checkers/min.d.ts +1 -1
  93. package/dist/dataParser/parsers/bigint/checkers/min.mjs +2 -2
  94. package/dist/dataParser/parsers/bigint/index.cjs +2 -2
  95. package/dist/dataParser/parsers/bigint/index.d.ts +1 -1
  96. package/dist/dataParser/parsers/bigint/index.mjs +2 -2
  97. package/dist/dataParser/parsers/boolean.cjs +2 -2
  98. package/dist/dataParser/parsers/boolean.d.ts +1 -1
  99. package/dist/dataParser/parsers/boolean.mjs +2 -2
  100. package/dist/dataParser/parsers/coerce/bigint.cjs +1 -0
  101. package/dist/dataParser/parsers/coerce/bigint.mjs +1 -0
  102. package/dist/dataParser/parsers/coerce/boolean.cjs +1 -0
  103. package/dist/dataParser/parsers/coerce/boolean.mjs +1 -0
  104. package/dist/dataParser/parsers/coerce/empty.cjs +1 -0
  105. package/dist/dataParser/parsers/coerce/empty.mjs +1 -0
  106. package/dist/dataParser/parsers/coerce/nil.cjs +1 -0
  107. package/dist/dataParser/parsers/coerce/nil.mjs +1 -0
  108. package/dist/dataParser/parsers/coerce/number.cjs +1 -0
  109. package/dist/dataParser/parsers/coerce/number.mjs +1 -0
  110. package/dist/dataParser/parsers/coerce/string.cjs +1 -0
  111. package/dist/dataParser/parsers/coerce/string.mjs +1 -0
  112. package/dist/dataParser/parsers/empty.cjs +2 -2
  113. package/dist/dataParser/parsers/empty.d.ts +1 -1
  114. package/dist/dataParser/parsers/empty.mjs +2 -2
  115. package/dist/dataParser/parsers/lazy.cjs +2 -2
  116. package/dist/dataParser/parsers/lazy.d.ts +1 -1
  117. package/dist/dataParser/parsers/lazy.mjs +2 -2
  118. package/dist/dataParser/parsers/literal.cjs +4 -3
  119. package/dist/dataParser/parsers/literal.d.ts +1 -1
  120. package/dist/dataParser/parsers/literal.mjs +4 -3
  121. package/dist/dataParser/parsers/nil.cjs +2 -2
  122. package/dist/dataParser/parsers/nil.d.ts +1 -1
  123. package/dist/dataParser/parsers/nil.mjs +2 -2
  124. package/dist/dataParser/parsers/nullable.cjs +2 -2
  125. package/dist/dataParser/parsers/nullable.d.ts +1 -1
  126. package/dist/dataParser/parsers/nullable.mjs +2 -2
  127. package/dist/dataParser/parsers/number/checkers/int.cjs +2 -2
  128. package/dist/dataParser/parsers/number/checkers/int.d.ts +1 -1
  129. package/dist/dataParser/parsers/number/checkers/int.mjs +2 -2
  130. package/dist/dataParser/parsers/number/checkers/max.cjs +2 -2
  131. package/dist/dataParser/parsers/number/checkers/max.d.ts +1 -1
  132. package/dist/dataParser/parsers/number/checkers/max.mjs +2 -2
  133. package/dist/dataParser/parsers/number/checkers/min.cjs +2 -2
  134. package/dist/dataParser/parsers/number/checkers/min.d.ts +1 -1
  135. package/dist/dataParser/parsers/number/checkers/min.mjs +2 -2
  136. package/dist/dataParser/parsers/number/index.cjs +2 -2
  137. package/dist/dataParser/parsers/number/index.d.ts +1 -1
  138. package/dist/dataParser/parsers/number/index.mjs +2 -2
  139. package/dist/dataParser/parsers/object.cjs +3 -2
  140. package/dist/dataParser/parsers/object.d.ts +1 -1
  141. package/dist/dataParser/parsers/object.mjs +3 -2
  142. package/dist/dataParser/parsers/optional.cjs +2 -2
  143. package/dist/dataParser/parsers/optional.d.ts +1 -1
  144. package/dist/dataParser/parsers/optional.mjs +2 -2
  145. package/dist/dataParser/parsers/pipe.cjs +2 -2
  146. package/dist/dataParser/parsers/pipe.d.ts +1 -1
  147. package/dist/dataParser/parsers/pipe.mjs +2 -2
  148. package/dist/dataParser/parsers/record.cjs +2 -2
  149. package/dist/dataParser/parsers/record.d.ts +1 -1
  150. package/dist/dataParser/parsers/record.mjs +2 -2
  151. package/dist/dataParser/parsers/string/checkers/email.cjs +2 -2
  152. package/dist/dataParser/parsers/string/checkers/email.d.ts +1 -1
  153. package/dist/dataParser/parsers/string/checkers/email.mjs +2 -2
  154. package/dist/dataParser/parsers/string/checkers/max.cjs +2 -2
  155. package/dist/dataParser/parsers/string/checkers/max.d.ts +1 -1
  156. package/dist/dataParser/parsers/string/checkers/max.mjs +2 -2
  157. package/dist/dataParser/parsers/string/checkers/min.cjs +2 -2
  158. package/dist/dataParser/parsers/string/checkers/min.d.ts +1 -1
  159. package/dist/dataParser/parsers/string/checkers/min.mjs +2 -2
  160. package/dist/dataParser/parsers/string/checkers/regex.cjs +2 -2
  161. package/dist/dataParser/parsers/string/checkers/regex.d.ts +1 -1
  162. package/dist/dataParser/parsers/string/checkers/regex.mjs +2 -2
  163. package/dist/dataParser/parsers/string/checkers/url.cjs +2 -2
  164. package/dist/dataParser/parsers/string/checkers/url.d.ts +1 -1
  165. package/dist/dataParser/parsers/string/checkers/url.mjs +2 -2
  166. package/dist/dataParser/parsers/string/index.cjs +2 -2
  167. package/dist/dataParser/parsers/string/index.d.ts +1 -1
  168. package/dist/dataParser/parsers/string/index.mjs +2 -2
  169. package/dist/dataParser/parsers/templateLiteral.cjs +3 -2
  170. package/dist/dataParser/parsers/templateLiteral.d.ts +1 -1
  171. package/dist/dataParser/parsers/templateLiteral.mjs +3 -2
  172. package/dist/dataParser/parsers/transform.cjs +2 -2
  173. package/dist/dataParser/parsers/transform.d.ts +1 -1
  174. package/dist/dataParser/parsers/transform.mjs +2 -2
  175. package/dist/dataParser/parsers/tuple.cjs +2 -2
  176. package/dist/dataParser/parsers/tuple.d.ts +1 -1
  177. package/dist/dataParser/parsers/tuple.mjs +2 -2
  178. package/dist/dataParser/parsers/union.cjs +2 -2
  179. package/dist/dataParser/parsers/union.d.ts +1 -1
  180. package/dist/dataParser/parsers/union.mjs +2 -2
  181. package/dist/dataParser/parsers/unknown.cjs +2 -2
  182. package/dist/dataParser/parsers/unknown.d.ts +1 -1
  183. package/dist/dataParser/parsers/unknown.mjs +2 -2
  184. package/dist/either/bool/base.cjs +2 -2
  185. package/dist/either/bool/base.d.ts +1 -1
  186. package/dist/either/bool/base.mjs +2 -2
  187. package/dist/either/bool/falsy.cjs +5 -4
  188. package/dist/either/bool/falsy.d.ts +4 -4
  189. package/dist/either/bool/falsy.mjs +5 -4
  190. package/dist/either/bool/truthy.cjs +4 -3
  191. package/dist/either/bool/truthy.d.ts +5 -5
  192. package/dist/either/bool/truthy.mjs +4 -3
  193. package/dist/either/future/base.cjs +2 -2
  194. package/dist/either/future/base.d.ts +1 -1
  195. package/dist/either/future/base.mjs +2 -2
  196. package/dist/either/future/create.cjs +1 -0
  197. package/dist/either/future/create.mjs +1 -0
  198. package/dist/either/future/error.cjs +3 -2
  199. package/dist/either/future/error.d.ts +1 -1
  200. package/dist/either/future/error.mjs +3 -2
  201. package/dist/either/future/success.cjs +3 -2
  202. package/dist/either/future/success.d.ts +2 -2
  203. package/dist/either/future/success.mjs +3 -2
  204. package/dist/either/hasInformation.cjs +3 -3
  205. package/dist/either/hasInformation.d.ts +1 -1
  206. package/dist/either/hasInformation.mjs +1 -1
  207. package/dist/either/index.cjs +3 -2
  208. package/dist/either/index.d.ts +1 -1
  209. package/dist/either/index.mjs +1 -1
  210. package/dist/either/kind.cjs +12 -0
  211. package/dist/either/kind.d.ts +2 -0
  212. package/dist/either/kind.mjs +9 -0
  213. package/dist/either/left/create.cjs +3 -4
  214. package/dist/either/left/create.d.ts +2 -2
  215. package/dist/either/left/create.mjs +2 -3
  216. package/dist/either/left/error.cjs +2 -2
  217. package/dist/either/left/error.d.ts +1 -1
  218. package/dist/either/left/error.mjs +2 -2
  219. package/dist/either/left/fail.cjs +2 -2
  220. package/dist/either/left/fail.d.ts +1 -1
  221. package/dist/either/left/fail.mjs +2 -2
  222. package/dist/either/left/is.cjs +2 -2
  223. package/dist/either/left/is.mjs +1 -1
  224. package/dist/either/left/when.cjs +1 -0
  225. package/dist/either/left/when.mjs +1 -0
  226. package/dist/either/nullable/base.cjs +2 -2
  227. package/dist/either/nullable/base.d.ts +1 -1
  228. package/dist/either/nullable/base.mjs +2 -2
  229. package/dist/either/nullable/empty.cjs +3 -2
  230. package/dist/either/nullable/empty.d.ts +1 -1
  231. package/dist/either/nullable/empty.mjs +3 -2
  232. package/dist/either/nullable/filled.cjs +3 -2
  233. package/dist/either/nullable/filled.d.ts +1 -1
  234. package/dist/either/nullable/filled.mjs +3 -2
  235. package/dist/either/nullish/base.cjs +2 -2
  236. package/dist/either/nullish/base.d.ts +1 -1
  237. package/dist/either/nullish/base.mjs +2 -2
  238. package/dist/either/nullish/empty.cjs +3 -2
  239. package/dist/either/nullish/empty.d.ts +2 -2
  240. package/dist/either/nullish/empty.mjs +3 -2
  241. package/dist/either/nullish/filled.cjs +4 -3
  242. package/dist/either/nullish/filled.d.ts +1 -1
  243. package/dist/either/nullish/filled.mjs +4 -3
  244. package/dist/either/optional/base.cjs +2 -2
  245. package/dist/either/optional/base.d.ts +1 -1
  246. package/dist/either/optional/base.mjs +2 -2
  247. package/dist/either/optional/empty.cjs +5 -4
  248. package/dist/either/optional/empty.d.ts +3 -3
  249. package/dist/either/optional/empty.mjs +5 -4
  250. package/dist/either/optional/filled.cjs +5 -4
  251. package/dist/either/optional/filled.d.ts +3 -3
  252. package/dist/either/optional/filled.mjs +5 -4
  253. package/dist/either/right/asyncPipe.cjs +1 -0
  254. package/dist/either/right/asyncPipe.mjs +1 -0
  255. package/dist/either/right/create.cjs +3 -4
  256. package/dist/either/right/create.d.ts +2 -2
  257. package/dist/either/right/create.mjs +2 -3
  258. package/dist/either/right/is.cjs +2 -2
  259. package/dist/either/right/is.mjs +1 -1
  260. package/dist/either/right/ok.cjs +2 -2
  261. package/dist/either/right/ok.d.ts +1 -1
  262. package/dist/either/right/ok.mjs +2 -2
  263. package/dist/either/right/pipe.cjs +1 -0
  264. package/dist/either/right/pipe.mjs +1 -0
  265. package/dist/either/right/success.cjs +2 -2
  266. package/dist/either/right/success.d.ts +2 -2
  267. package/dist/either/right/success.mjs +2 -2
  268. package/dist/either/right/when.cjs +1 -0
  269. package/dist/either/right/when.mjs +1 -0
  270. package/dist/either/whenHasInformation.cjs +3 -2
  271. package/dist/either/whenHasInformation.d.ts +1 -1
  272. package/dist/either/whenHasInformation.mjs +2 -1
  273. package/dist/generator/asyncReduce.cjs +1 -0
  274. package/dist/generator/asyncReduce.mjs +1 -0
  275. package/dist/generator/reduce.cjs +1 -0
  276. package/dist/generator/reduce.mjs +1 -0
  277. package/dist/index.cjs +5 -0
  278. package/dist/index.mjs +3 -2
  279. package/dist/number/greater.cjs +12 -0
  280. package/dist/number/greater.d.ts +2 -0
  281. package/dist/number/greater.mjs +10 -0
  282. package/dist/number/greaterThan.cjs +12 -0
  283. package/dist/number/greaterThan.d.ts +2 -0
  284. package/dist/number/greaterThan.mjs +10 -0
  285. package/dist/number/index.cjs +8 -0
  286. package/dist/number/index.d.ts +4 -0
  287. package/dist/number/index.mjs +4 -0
  288. package/dist/number/less.cjs +12 -0
  289. package/dist/number/less.d.ts +2 -0
  290. package/dist/number/less.mjs +10 -0
  291. package/dist/number/lessThan.cjs +12 -0
  292. package/dist/number/lessThan.d.ts +2 -0
  293. package/dist/number/lessThan.mjs +10 -0
  294. package/dist/object/deepDiscriminate.cjs +1 -0
  295. package/dist/object/deepDiscriminate.mjs +1 -0
  296. package/dist/object/discriminate.cjs +1 -0
  297. package/dist/object/discriminate.mjs +1 -0
  298. package/dist/object/entries.cjs +3 -1
  299. package/dist/object/entries.mjs +4 -2
  300. package/dist/object/keys.cjs +3 -1
  301. package/dist/object/keys.mjs +4 -2
  302. package/dist/pattern/exhaustive.cjs +1 -0
  303. package/dist/pattern/exhaustive.mjs +1 -0
  304. package/dist/pattern/otherwise.cjs +1 -0
  305. package/dist/pattern/otherwise.mjs +1 -0
  306. package/dist/pattern/result.cjs +1 -0
  307. package/dist/pattern/result.mjs +1 -0
  308. package/dist/string/types/forbiddenString.d.ts +8 -0
  309. package/dist/string/types/index.d.ts +1 -0
  310. package/package.json +1 -1
  311. package/dist/either/base.cjs +0 -7
  312. package/dist/either/base.d.ts +0 -1
  313. package/dist/either/base.mjs +0 -5
@@ -7,4 +7,4 @@ export * from "./optional";
7
7
  export * from "./right";
8
8
  export * from "./hasInformation";
9
9
  export * from "./whenHasInformation";
10
- export * from "./base";
10
+ export * from "./kind";
@@ -32,4 +32,4 @@ export { eitherSuccessKind, success } from './right/success.mjs';
32
32
  export { whenIsRight } from './right/when.mjs';
33
33
  export { hasInformation } from './hasInformation.mjs';
34
34
  export { whenHasInformation } from './whenHasInformation.mjs';
35
- export { eitherInformationKind } from './base.mjs';
35
+ export { createEitherKind, eitherInformationKind } from './kind.mjs';
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var kind = require('../common/kind.cjs');
4
+ require('../common/globalStore.cjs');
5
+
6
+ const createEitherKind = kind.createKindNamespace(
7
+ // @ts-expect-error reserved kind namespace
8
+ "Either");
9
+ const eitherInformationKind = createEitherKind("information");
10
+
11
+ exports.createEitherKind = createEitherKind;
12
+ exports.eitherInformationKind = eitherInformationKind;
@@ -0,0 +1,2 @@
1
+ export declare const createEitherKind: <GenericName extends string, GenericKindValue extends unknown = unknown>(name: GenericName & import("../string").ForbiddenString<GenericName, "@" | "/">) => import("../common").KindHandler<import("../common").KindDefinition<`@Either/${GenericName}`, GenericKindValue>>;
2
+ export declare const eitherInformationKind: import("../common").KindHandler<import("../common").KindDefinition<"@Either/information", string>>;
@@ -0,0 +1,9 @@
1
+ import { createKindNamespace } from '../common/kind.mjs';
2
+ import '../common/globalStore.mjs';
3
+
4
+ const createEitherKind = createKindNamespace(
5
+ // @ts-expect-error reserved kind namespace
6
+ "Either");
7
+ const eitherInformationKind = createEitherKind("information");
8
+
9
+ export { createEitherKind, eitherInformationKind };
@@ -1,12 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
4
3
  var wrapValue = require('../../common/wrapValue.cjs');
5
- var base = require('../base.cjs');
4
+ var kind = require('../kind.cjs');
6
5
 
7
- const eitherLeftKind = kind.createKind("either-left");
6
+ const eitherLeftKind = kind.createEitherKind("left");
8
7
  function left(information, value = undefined) {
9
- return eitherLeftKind.setTo(base.eitherInformationKind.setTo(wrapValue.wrapValue(value), information));
8
+ return eitherLeftKind.setTo(kind.eitherInformationKind.setTo(wrapValue.wrapValue(value), information));
10
9
  }
11
10
 
12
11
  exports.eitherLeftKind = eitherLeftKind;
@@ -1,7 +1,7 @@
1
1
  import { type Kind } from "../../common/kind";
2
2
  import { type WrappedValue } from "../../common/wrapValue";
3
- import { eitherInformationKind } from "../base";
4
- export declare const eitherLeftKind: import("../../common/kind").KindHandler<import("../../common/kind").KindDefinition<"either-left", unknown>>;
3
+ import { eitherInformationKind } from "../kind";
4
+ export declare const eitherLeftKind: import("../../common/kind").KindHandler<import("../../common/kind").KindDefinition<"@Either/left", unknown>>;
5
5
  type _EitherLeft<GenericInformation extends string = string, GenericValue extends unknown = unknown> = (Kind<typeof eitherLeftKind.definition> & Kind<typeof eitherInformationKind.definition, GenericInformation> & WrappedValue<GenericValue>);
6
6
  export interface EitherLeft<GenericInformation extends string = string, GenericValue extends unknown = unknown> extends _EitherLeft<GenericInformation, GenericValue> {
7
7
  }
@@ -1,8 +1,7 @@
1
- import { createKind } from '../../common/kind.mjs';
2
1
  import { wrapValue } from '../../common/wrapValue.mjs';
3
- import { eitherInformationKind } from '../base.mjs';
2
+ import { createEitherKind, eitherInformationKind } from '../kind.mjs';
4
3
 
5
- const eitherLeftKind = createKind("either-left");
4
+ const eitherLeftKind = createEitherKind("left");
6
5
  function left(information, value = undefined) {
7
6
  return eitherLeftKind.setTo(eitherInformationKind.setTo(wrapValue(value), information));
8
7
  }
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
3
+ var kind = require('../kind.cjs');
4
4
  var create = require('./create.cjs');
5
5
 
6
- const eitherErrorKind = kind.createKind("either-error");
6
+ const eitherErrorKind = kind.createEitherKind("error");
7
7
  function error(value) {
8
8
  return eitherErrorKind.setTo(create.left("error", value));
9
9
  }
@@ -1,6 +1,6 @@
1
1
  import { type Kind } from "../../common/kind";
2
2
  import { type EitherLeft } from "./create";
3
- export declare const eitherErrorKind: import("../../common/kind").KindHandler<import("../../common/kind").KindDefinition<"either-error", unknown>>;
3
+ export declare const eitherErrorKind: import("../../common/kind").KindHandler<import("../../common/kind").KindDefinition<"@Either/error", unknown>>;
4
4
  type _EitherError<GenericValue extends unknown = unknown> = (EitherLeft<"error", GenericValue> & Kind<typeof eitherErrorKind.definition>);
5
5
  export interface EitherError<GenericValue extends unknown = unknown> extends _EitherError<GenericValue> {
6
6
  }
@@ -1,7 +1,7 @@
1
- import { createKind } from '../../common/kind.mjs';
1
+ import { createEitherKind } from '../kind.mjs';
2
2
  import { left } from './create.mjs';
3
3
 
4
- const eitherErrorKind = createKind("either-error");
4
+ const eitherErrorKind = createEitherKind("error");
5
5
  function error(value) {
6
6
  return eitherErrorKind.setTo(left("error", value));
7
7
  }
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
3
+ var kind = require('../kind.cjs');
4
4
  var create = require('./create.cjs');
5
5
 
6
- const eitherFailKind = kind.createKind("either-fail");
6
+ const eitherFailKind = kind.createEitherKind("fail");
7
7
  function fail() {
8
8
  return eitherFailKind.setTo(create.left("fail", undefined));
9
9
  }
@@ -1,6 +1,6 @@
1
1
  import { type Kind } from "../../common/kind";
2
2
  import { type EitherLeft } from "./create";
3
- export declare const eitherFailKind: import("../../common/kind").KindHandler<import("../../common/kind").KindDefinition<"either-fail", unknown>>;
3
+ export declare const eitherFailKind: import("../../common/kind").KindHandler<import("../../common/kind").KindDefinition<"@Either/fail", unknown>>;
4
4
  type _EitherFail = (EitherLeft<"fail", never> & Kind<typeof eitherFailKind.definition>);
5
5
  export interface EitherFail extends _EitherFail {
6
6
  }
@@ -1,7 +1,7 @@
1
- import { createKind } from '../../common/kind.mjs';
1
+ import { createEitherKind } from '../kind.mjs';
2
2
  import { left } from './create.mjs';
3
3
 
4
- const eitherFailKind = createKind("either-fail");
4
+ const eitherFailKind = createEitherKind("fail");
5
5
  function fail() {
6
6
  return eitherFailKind.setTo(left("fail", undefined));
7
7
  }
@@ -2,11 +2,11 @@
2
2
 
3
3
  var create = require('./create.cjs');
4
4
  var wrapValue = require('../../common/wrapValue.cjs');
5
- var base = require('../base.cjs');
5
+ var kind = require('../kind.cjs');
6
6
 
7
7
  function isLeft(input) {
8
8
  return create.eitherLeftKind.has(input)
9
- && base.eitherInformationKind.has(input)
9
+ && kind.eitherInformationKind.has(input)
10
10
  && wrapValue.isWrappedValue(input);
11
11
  }
12
12
 
@@ -1,6 +1,6 @@
1
1
  import { eitherLeftKind } from './create.mjs';
2
2
  import { isWrappedValue } from '../../common/wrapValue.mjs';
3
- import { eitherInformationKind } from '../base.mjs';
3
+ import { eitherInformationKind } from '../kind.mjs';
4
4
 
5
5
  function isLeft(input) {
6
6
  return eitherLeftKind.has(input)
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var unwrap = require('../../common/unwrap.cjs');
4
+ require('../../common/globalStore.cjs');
4
5
  var is = require('./is.cjs');
5
6
 
6
7
  function whenIsLeft(...args) {
@@ -1,4 +1,5 @@
1
1
  import { unwrap } from '../../common/unwrap.mjs';
2
+ import '../../common/globalStore.mjs';
2
3
  import { isLeft } from './is.mjs';
3
4
 
4
5
  function whenIsLeft(...args) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
3
+ var kind = require('../kind.cjs');
4
4
 
5
- const eitherNullableKind = kind.createKind("either-nullable");
5
+ const eitherNullableKind = kind.createEitherKind("nullable");
6
6
 
7
7
  exports.eitherNullableKind = eitherNullableKind;
@@ -1 +1 @@
1
- export declare const eitherNullableKind: import("../../common").KindHandler<import("../../common").KindDefinition<"either-nullable", unknown>>;
1
+ export declare const eitherNullableKind: import("../..").KindHandler<import("../..").KindDefinition<"@Either/nullable", unknown>>;
@@ -1,5 +1,5 @@
1
- import { createKind } from '../../common/kind.mjs';
1
+ import { createEitherKind } from '../kind.mjs';
2
2
 
3
- const eitherNullableKind = createKind("either-nullable");
3
+ const eitherNullableKind = createEitherKind("nullable");
4
4
 
5
5
  export { eitherNullableKind };
@@ -1,14 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
4
3
  var unwrap = require('../../common/unwrap.cjs');
4
+ require('../../common/globalStore.cjs');
5
5
  var create = require('../left/create.cjs');
6
+ var kind = require('../kind.cjs');
6
7
  var is = require('../left/is.cjs');
7
8
  var is$1 = require('../right/is.cjs');
8
9
  var create$1 = require('./create.cjs');
9
10
  var base = require('./base.cjs');
10
11
 
11
- const eitherNullableEmptyKind = kind.createKind("either-nullable-empty");
12
+ const eitherNullableEmptyKind = kind.createEitherKind("nullable-empty");
12
13
  function nullableEmpty() {
13
14
  return base.eitherNullableKind.setTo(eitherNullableEmptyKind.setTo(create.left("nullable", null)));
14
15
  }
@@ -4,7 +4,7 @@ import { type EitherLeft } from "../left";
4
4
  import { type EitherRight } from "../right";
5
5
  import { nullable } from "./create";
6
6
  import { eitherNullableKind } from "./base";
7
- export declare const eitherNullableEmptyKind: import("../../common").KindHandler<import("../../common").KindDefinition<"either-nullable-empty", unknown>>;
7
+ export declare const eitherNullableEmptyKind: import("../../common").KindHandler<import("../../common").KindDefinition<"@Either/nullable-empty", unknown>>;
8
8
  type _EitherNullableEmpty = (EitherLeft<"nullable", null> & Kind<typeof eitherNullableKind.definition> & Kind<typeof eitherNullableEmptyKind.definition>);
9
9
  export interface EitherNullableEmpty extends _EitherNullableEmpty {
10
10
  }
@@ -1,12 +1,13 @@
1
- import { createKind } from '../../common/kind.mjs';
2
1
  import { unwrap } from '../../common/unwrap.mjs';
2
+ import '../../common/globalStore.mjs';
3
3
  import { left } from '../left/create.mjs';
4
+ import { createEitherKind } from '../kind.mjs';
4
5
  import { isLeft } from '../left/is.mjs';
5
6
  import { isRight } from '../right/is.mjs';
6
7
  import { nullable } from './create.mjs';
7
8
  import { eitherNullableKind } from './base.mjs';
8
9
 
9
- const eitherNullableEmptyKind = createKind("either-nullable-empty");
10
+ const eitherNullableEmptyKind = createEitherKind("nullable-empty");
10
11
  function nullableEmpty() {
11
12
  return eitherNullableKind.setTo(eitherNullableEmptyKind.setTo(left("nullable", null)));
12
13
  }
@@ -1,14 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
4
3
  var unwrap = require('../../common/unwrap.cjs');
4
+ require('../../common/globalStore.cjs');
5
+ var kind = require('../kind.cjs');
5
6
  var is$1 = require('../left/is.cjs');
6
7
  var create = require('../right/create.cjs');
7
8
  var is = require('../right/is.cjs');
8
9
  var create$1 = require('./create.cjs');
9
10
  var base = require('./base.cjs');
10
11
 
11
- const eitherNullableFilledKind = kind.createKind("either-nullable-filled");
12
+ const eitherNullableFilledKind = kind.createEitherKind("nullable-filled");
12
13
  function nullableFilled(value) {
13
14
  return base.eitherNullableKind.setTo(eitherNullableFilledKind.setTo(create.right("nullable", value)));
14
15
  }
@@ -4,7 +4,7 @@ import { type EitherLeft } from "../left";
4
4
  import { type EitherRight } from "../right";
5
5
  import { nullable } from "./create";
6
6
  import { eitherNullableKind } from "./base";
7
- export declare const eitherNullableFilledKind: import("../../common").KindHandler<import("../../common").KindDefinition<"either-nullable-filled", unknown>>;
7
+ export declare const eitherNullableFilledKind: import("../../common").KindHandler<import("../../common").KindDefinition<"@Either/nullable-filled", unknown>>;
8
8
  type _EitherNullableFilled<GenericValue extends unknown = unknown> = (EitherRight<"nullable", GenericValue> & Kind<typeof eitherNullableKind.definition> & Kind<typeof eitherNullableFilledKind.definition>);
9
9
  export interface EitherNullableFilled<GenericValue extends unknown = unknown> extends _EitherNullableFilled<GenericValue> {
10
10
  }
@@ -1,12 +1,13 @@
1
- import { createKind } from '../../common/kind.mjs';
2
1
  import { unwrap } from '../../common/unwrap.mjs';
2
+ import '../../common/globalStore.mjs';
3
+ import { createEitherKind } from '../kind.mjs';
3
4
  import { isLeft } from '../left/is.mjs';
4
5
  import { right } from '../right/create.mjs';
5
6
  import { isRight } from '../right/is.mjs';
6
7
  import { nullable } from './create.mjs';
7
8
  import { eitherNullableKind } from './base.mjs';
8
9
 
9
- const eitherNullableFilledKind = createKind("either-nullable-filled");
10
+ const eitherNullableFilledKind = createEitherKind("nullable-filled");
10
11
  function nullableFilled(value) {
11
12
  return eitherNullableKind.setTo(eitherNullableFilledKind.setTo(right("nullable", value)));
12
13
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
3
+ var kind = require('../kind.cjs');
4
4
 
5
- const eitherNullishKind = kind.createKind("either-nullish");
5
+ const eitherNullishKind = kind.createEitherKind("nullish");
6
6
 
7
7
  exports.eitherNullishKind = eitherNullishKind;
@@ -1 +1 @@
1
- export declare const eitherNullishKind: import("../../common").KindHandler<import("../../common").KindDefinition<"either-nullish", unknown>>;
1
+ export declare const eitherNullishKind: import("../..").KindHandler<import("../..").KindDefinition<"@Either/nullish", unknown>>;
@@ -1,5 +1,5 @@
1
- import { createKind } from '../../common/kind.mjs';
1
+ import { createEitherKind } from '../kind.mjs';
2
2
 
3
- const eitherNullishKind = createKind("either-nullish");
3
+ const eitherNullishKind = createEitherKind("nullish");
4
4
 
5
5
  export { eitherNullishKind };
@@ -1,14 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
4
3
  var unwrap = require('../../common/unwrap.cjs');
4
+ require('../../common/globalStore.cjs');
5
+ var kind = require('../kind.cjs');
5
6
  var create = require('../left/create.cjs');
6
7
  var is = require('../left/is.cjs');
7
8
  var is$1 = require('../right/is.cjs');
8
9
  var create$1 = require('./create.cjs');
9
10
  var base = require('./base.cjs');
10
11
 
11
- const eitherNullishEmptyKind = kind.createKind("either-nullish-empty");
12
+ const eitherNullishEmptyKind = kind.createEitherKind("nullish-empty");
12
13
  function nullishEmpty(value = undefined) {
13
14
  return base.eitherNullishKind.setTo(eitherNullishEmptyKind.setTo(create.left("nullish", value)));
14
15
  }
@@ -1,11 +1,11 @@
1
1
  import { type EscapeVoid, type AnyValue, type Unwrap, type BreakGenericLink } from "../../common";
2
+ import { type Kind } from "../../common/kind";
2
3
  import { type EitherLeft } from "../left";
3
4
  import { type EitherRight } from "../right";
4
5
  import { nullish } from "./create";
5
- import { type Kind } from "../../common/kind";
6
6
  import { eitherNullishKind } from "./base";
7
7
  export type NullishValue = null | undefined;
8
- export declare const eitherNullishEmptyKind: import("../../common").KindHandler<import("../../common").KindDefinition<"either-nullish-empty", unknown>>;
8
+ export declare const eitherNullishEmptyKind: import("../../common").KindHandler<import("../../common").KindDefinition<"@Either/nullish-empty", unknown>>;
9
9
  type _EitherNullishEmpty<GenericValue extends NullishValue = NullishValue> = (EitherLeft<"nullish", GenericValue> & Kind<typeof eitherNullishKind.definition> & Kind<typeof eitherNullishEmptyKind.definition>);
10
10
  export interface EitherNullishEmpty<GenericValue extends NullishValue = NullishValue> extends _EitherNullishEmpty<GenericValue> {
11
11
  }
@@ -1,12 +1,13 @@
1
- import { createKind } from '../../common/kind.mjs';
2
1
  import { unwrap } from '../../common/unwrap.mjs';
2
+ import '../../common/globalStore.mjs';
3
+ import { createEitherKind } from '../kind.mjs';
3
4
  import { left } from '../left/create.mjs';
4
5
  import { isLeft } from '../left/is.mjs';
5
6
  import { isRight } from '../right/is.mjs';
6
7
  import { nullish } from './create.mjs';
7
8
  import { eitherNullishKind } from './base.mjs';
8
9
 
9
- const eitherNullishEmptyKind = createKind("either-nullish-empty");
10
+ const eitherNullishEmptyKind = createEitherKind("nullish-empty");
10
11
  function nullishEmpty(value = undefined) {
11
12
  return eitherNullishKind.setTo(eitherNullishEmptyKind.setTo(left("nullish", value)));
12
13
  }
@@ -1,14 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
4
- var unwrap = require('../../common/unwrap.cjs');
3
+ var kind = require('../kind.cjs');
5
4
  var is$1 = require('../left/is.cjs');
5
+ var unwrap = require('../../common/unwrap.cjs');
6
+ require('../../common/globalStore.cjs');
6
7
  var create = require('../right/create.cjs');
7
8
  var is = require('../right/is.cjs');
8
9
  var create$1 = require('./create.cjs');
9
10
  var base = require('./base.cjs');
10
11
 
11
- const eitherNullishFilledKind = kind.createKind("either-nullish-filled");
12
+ const eitherNullishFilledKind = kind.createEitherKind("nullish-filled");
12
13
  function nullishFilled(value) {
13
14
  return base.eitherNullishKind.setTo(eitherNullishFilledKind.setTo(create.right("nullish", value)));
14
15
  }
@@ -4,7 +4,7 @@ import { nullish } from "./create";
4
4
  import { type Kind } from "../../common/kind";
5
5
  import { type EscapeVoid, type AnyValue, type Unwrap, type BreakGenericLink } from "../../common";
6
6
  import { eitherNullishKind } from "./base";
7
- export declare const eitherNullishFilledKind: import("../../common").KindHandler<import("../../common").KindDefinition<"either-nullish-filled", unknown>>;
7
+ export declare const eitherNullishFilledKind: import("../../common").KindHandler<import("../../common").KindDefinition<"@Either/nullish-filled", unknown>>;
8
8
  type _EitherNullishFilled<GenericValue extends unknown = unknown> = (EitherRight<"nullish", GenericValue> & Kind<typeof eitherNullishKind.definition> & Kind<typeof eitherNullishFilledKind.definition>);
9
9
  export interface EitherNullishFilled<GenericValue extends unknown = unknown> extends _EitherNullishFilled<GenericValue> {
10
10
  }
@@ -1,12 +1,13 @@
1
- import { createKind } from '../../common/kind.mjs';
2
- import { unwrap } from '../../common/unwrap.mjs';
1
+ import { createEitherKind } from '../kind.mjs';
3
2
  import { isLeft } from '../left/is.mjs';
3
+ import { unwrap } from '../../common/unwrap.mjs';
4
+ import '../../common/globalStore.mjs';
4
5
  import { right } from '../right/create.mjs';
5
6
  import { isRight } from '../right/is.mjs';
6
7
  import { nullish } from './create.mjs';
7
8
  import { eitherNullishKind } from './base.mjs';
8
9
 
9
- const eitherNullishFilledKind = createKind("either-nullish-filled");
10
+ const eitherNullishFilledKind = createEitherKind("nullish-filled");
10
11
  function nullishFilled(value) {
11
12
  return eitherNullishKind.setTo(eitherNullishFilledKind.setTo(right("nullish", value)));
12
13
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
3
+ var kind = require('../kind.cjs');
4
4
 
5
- const eitherOptionalKind = kind.createKind("either-optional");
5
+ const eitherOptionalKind = kind.createEitherKind("optional");
6
6
 
7
7
  exports.eitherOptionalKind = eitherOptionalKind;
@@ -1 +1 @@
1
- export declare const eitherOptionalKind: import("../../common").KindHandler<import("../../common").KindDefinition<"either-optional", unknown>>;
1
+ export declare const eitherOptionalKind: import("../..").KindHandler<import("../..").KindDefinition<"@Either/optional", unknown>>;
@@ -1,5 +1,5 @@
1
- import { createKind } from '../../common/kind.mjs';
1
+ import { createEitherKind } from '../kind.mjs';
2
2
 
3
- const eitherOptionalKind = createKind("either-optional");
3
+ const eitherOptionalKind = createEitherKind("optional");
4
4
 
5
5
  export { eitherOptionalKind };
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
3
+ var kind = require('../kind.cjs');
4
+ var base = require('./base.cjs');
5
+ var create$1 = require('./create.cjs');
4
6
  var create = require('../left/create.cjs');
5
7
  var is = require('../left/is.cjs');
8
+ require('../../common/globalStore.cjs');
6
9
  var is$1 = require('../right/is.cjs');
7
- var create$1 = require('./create.cjs');
8
- var base = require('./base.cjs');
9
10
 
10
- const eitherOptionalEmptyKind = kind.createKind("either-optional-empty");
11
+ const eitherOptionalEmptyKind = kind.createEitherKind("optional-empty");
11
12
  function optionalEmpty() {
12
13
  return base.eitherOptionalKind.setTo(eitherOptionalEmptyKind.setTo(create.left("optional", undefined)));
13
14
  }
@@ -1,10 +1,10 @@
1
1
  import { type EscapeVoid, type AnyValue, type Unwrap, type BreakGenericLink } from "../../common";
2
2
  import { type Kind } from "../../common/kind";
3
+ import { eitherOptionalKind } from "./base";
4
+ import { optional } from "./create";
3
5
  import { type EitherLeft } from "../left";
4
6
  import { type EitherRight } from "../right";
5
- import { optional } from "./create";
6
- import { eitherOptionalKind } from "./base";
7
- export declare const eitherOptionalEmptyKind: import("../../common").KindHandler<import("../../common").KindDefinition<"either-optional-empty", unknown>>;
7
+ export declare const eitherOptionalEmptyKind: import("../../common").KindHandler<import("../../common").KindDefinition<"@Either/optional-empty", unknown>>;
8
8
  type _EitherOptionalEmpty = (EitherLeft<"optional", undefined> & Kind<typeof eitherOptionalKind.definition> & Kind<typeof eitherOptionalEmptyKind.definition>);
9
9
  export interface EitherOptionalEmpty extends _EitherOptionalEmpty {
10
10
  }
@@ -1,11 +1,12 @@
1
- import { createKind } from '../../common/kind.mjs';
1
+ import { createEitherKind } from '../kind.mjs';
2
+ import { eitherOptionalKind } from './base.mjs';
3
+ import { optional } from './create.mjs';
2
4
  import { left } from '../left/create.mjs';
3
5
  import { isLeft } from '../left/is.mjs';
6
+ import '../../common/globalStore.mjs';
4
7
  import { isRight } from '../right/is.mjs';
5
- import { optional } from './create.mjs';
6
- import { eitherOptionalKind } from './base.mjs';
7
8
 
8
- const eitherOptionalEmptyKind = createKind("either-optional-empty");
9
+ const eitherOptionalEmptyKind = createEitherKind("optional-empty");
9
10
  function optionalEmpty() {
10
11
  return eitherOptionalKind.setTo(eitherOptionalEmptyKind.setTo(left("optional", undefined)));
11
12
  }
@@ -1,14 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
4
3
  var unwrap = require('../../common/unwrap.cjs');
4
+ require('../../common/globalStore.cjs');
5
+ var kind = require('../kind.cjs');
6
+ var base = require('./base.cjs');
7
+ var create$1 = require('./create.cjs');
5
8
  var is$1 = require('../left/is.cjs');
6
9
  var create = require('../right/create.cjs');
7
10
  var is = require('../right/is.cjs');
8
- var create$1 = require('./create.cjs');
9
- var base = require('./base.cjs');
10
11
 
11
- const eitherOptionalFilledKind = kind.createKind("either-optional-filled");
12
+ const eitherOptionalFilledKind = kind.createEitherKind("optional-filled");
12
13
  function optionalFilled(value) {
13
14
  return base.eitherOptionalKind.setTo(eitherOptionalFilledKind.setTo(create.right("optional", value)));
14
15
  }
@@ -1,10 +1,10 @@
1
1
  import { type EscapeVoid, type AnyValue, type Unwrap, type BreakGenericLink } from "../../common";
2
2
  import { type Kind } from "../../common/kind";
3
+ import { eitherOptionalKind } from "./base";
4
+ import { optional } from "./create";
3
5
  import { type EitherLeft } from "../left";
4
6
  import { type EitherRight } from "../right";
5
- import { optional } from "./create";
6
- import { eitherOptionalKind } from "./base";
7
- export declare const eitherOptionalFilledKind: import("../../common").KindHandler<import("../../common").KindDefinition<"either-optional-filled", unknown>>;
7
+ export declare const eitherOptionalFilledKind: import("../../common").KindHandler<import("../../common").KindDefinition<"@Either/optional-filled", unknown>>;
8
8
  type _EitherOptionalFilled<GenericValue extends unknown = unknown> = (EitherRight<"optional", GenericValue> & Kind<typeof eitherOptionalKind.definition> & Kind<typeof eitherOptionalFilledKind.definition>);
9
9
  export interface EitherOptionalFilled<GenericValue extends unknown = unknown> extends _EitherOptionalFilled<GenericValue> {
10
10
  }
@@ -1,12 +1,13 @@
1
- import { createKind } from '../../common/kind.mjs';
2
1
  import { unwrap } from '../../common/unwrap.mjs';
2
+ import '../../common/globalStore.mjs';
3
+ import { createEitherKind } from '../kind.mjs';
4
+ import { eitherOptionalKind } from './base.mjs';
5
+ import { optional } from './create.mjs';
3
6
  import { isLeft } from '../left/is.mjs';
4
7
  import { right } from '../right/create.mjs';
5
8
  import { isRight } from '../right/is.mjs';
6
- import { optional } from './create.mjs';
7
- import { eitherOptionalKind } from './base.mjs';
8
9
 
9
- const eitherOptionalFilledKind = createKind("either-optional-filled");
10
+ const eitherOptionalFilledKind = createEitherKind("optional-filled");
10
11
  function optionalFilled(value) {
11
12
  return eitherOptionalKind.setTo(eitherOptionalFilledKind.setTo(right("optional", value)));
12
13
  }
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var unwrap = require('../../common/unwrap.cjs');
4
+ require('../../common/globalStore.cjs');
4
5
  var is = require('../left/is.cjs');
5
6
  var create = require('../future/create.cjs');
6
7
  var success = require('./success.cjs');
@@ -1,4 +1,5 @@
1
1
  import { unwrap } from '../../common/unwrap.mjs';
2
+ import '../../common/globalStore.mjs';
2
3
  import { isLeft } from '../left/is.mjs';
3
4
  import { future } from '../future/create.mjs';
4
5
  import { success } from './success.mjs';
@@ -1,12 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var kind = require('../../common/kind.cjs');
4
3
  var wrapValue = require('../../common/wrapValue.cjs');
5
- var base = require('../base.cjs');
4
+ var kind = require('../kind.cjs');
6
5
 
7
- const eitherRightKind = kind.createKind("either-right");
6
+ const eitherRightKind = kind.createEitherKind("right");
8
7
  function right(information, value = undefined) {
9
- return eitherRightKind.setTo(base.eitherInformationKind.setTo(wrapValue.wrapValue(value), information));
8
+ return eitherRightKind.setTo(kind.eitherInformationKind.setTo(wrapValue.wrapValue(value), information));
10
9
  }
11
10
 
12
11
  exports.eitherRightKind = eitherRightKind;