@fncts/typelevel 0.0.1

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 (85) hide show
  1. package/Any.d.ts +48 -0
  2. package/Boolean.d.ts +39 -0
  3. package/BuiltIn.d.ts +3 -0
  4. package/Check.d.ts +70 -0
  5. package/Function.d.ts +11 -0
  6. package/HKT.d.ts +186 -0
  7. package/Intersection.d.ts +1 -0
  8. package/Iteration.d.ts +216 -0
  9. package/List.d.ts +15 -0
  10. package/Number.d.ts +56 -0
  11. package/Object.d.ts +118 -0
  12. package/String.d.ts +8 -0
  13. package/Union.d.ts +23 -0
  14. package/_cjs/Any.cjs +6 -0
  15. package/_cjs/Any.cjs.map +1 -0
  16. package/_cjs/Boolean.cjs +6 -0
  17. package/_cjs/Boolean.cjs.map +1 -0
  18. package/_cjs/BuiltIn.cjs +6 -0
  19. package/_cjs/BuiltIn.cjs.map +1 -0
  20. package/_cjs/Check.cjs +6 -0
  21. package/_cjs/Check.cjs.map +1 -0
  22. package/_cjs/Function.cjs +6 -0
  23. package/_cjs/Function.cjs.map +1 -0
  24. package/_cjs/HKT.cjs +26 -0
  25. package/_cjs/HKT.cjs.map +1 -0
  26. package/_cjs/Intersection.cjs +6 -0
  27. package/_cjs/Intersection.cjs.map +1 -0
  28. package/_cjs/Iteration.cjs +6 -0
  29. package/_cjs/Iteration.cjs.map +1 -0
  30. package/_cjs/List.cjs +6 -0
  31. package/_cjs/List.cjs.map +1 -0
  32. package/_cjs/Number.cjs +6 -0
  33. package/_cjs/Number.cjs.map +1 -0
  34. package/_cjs/Object.cjs +6 -0
  35. package/_cjs/Object.cjs.map +1 -0
  36. package/_cjs/String.cjs +6 -0
  37. package/_cjs/String.cjs.map +1 -0
  38. package/_cjs/Union.cjs +6 -0
  39. package/_cjs/Union.cjs.map +1 -0
  40. package/_cjs/index.cjs +51 -0
  41. package/_cjs/index.cjs.map +1 -0
  42. package/_mjs/Any.mjs +2 -0
  43. package/_mjs/Any.mjs.map +1 -0
  44. package/_mjs/Boolean.mjs +2 -0
  45. package/_mjs/Boolean.mjs.map +1 -0
  46. package/_mjs/BuiltIn.mjs +2 -0
  47. package/_mjs/BuiltIn.mjs.map +1 -0
  48. package/_mjs/Check.mjs +2 -0
  49. package/_mjs/Check.mjs.map +1 -0
  50. package/_mjs/Function.mjs +2 -0
  51. package/_mjs/Function.mjs.map +1 -0
  52. package/_mjs/HKT.mjs +19 -0
  53. package/_mjs/HKT.mjs.map +1 -0
  54. package/_mjs/Intersection.mjs +2 -0
  55. package/_mjs/Intersection.mjs.map +1 -0
  56. package/_mjs/Iteration.mjs +2 -0
  57. package/_mjs/Iteration.mjs.map +1 -0
  58. package/_mjs/List.mjs +2 -0
  59. package/_mjs/List.mjs.map +1 -0
  60. package/_mjs/Number.mjs +2 -0
  61. package/_mjs/Number.mjs.map +1 -0
  62. package/_mjs/Object.mjs +2 -0
  63. package/_mjs/Object.mjs.map +1 -0
  64. package/_mjs/String.mjs +2 -0
  65. package/_mjs/String.mjs.map +1 -0
  66. package/_mjs/Union.mjs +2 -0
  67. package/_mjs/Union.mjs.map +1 -0
  68. package/_mjs/index.mjs +21 -0
  69. package/_mjs/index.mjs.map +1 -0
  70. package/_src/Any.ts +100 -0
  71. package/_src/Boolean.ts +44 -0
  72. package/_src/BuiltIn.ts +7 -0
  73. package/_src/Check.ts +89 -0
  74. package/_src/Function.ts +24 -0
  75. package/_src/HKT.ts +349 -0
  76. package/_src/Intersection.ts +1 -0
  77. package/_src/Iteration.ts +224 -0
  78. package/_src/List.ts +47 -0
  79. package/_src/Number.ts +137 -0
  80. package/_src/Object.ts +332 -0
  81. package/_src/String.ts +28 -0
  82. package/_src/Union.ts +47 -0
  83. package/_src/index.ts +11 -0
  84. package/index.d.ts +11 -0
  85. package/package.json +13 -0
package/Number.d.ts ADDED
@@ -0,0 +1,56 @@
1
+ import type { Cast, Equals } from "./Any.js";
2
+ import type { False, Or, True } from "./Boolean.js";
3
+ import type { Iteration, IterationMap, IterationOf, Next, Pos, Prev } from "./Iteration.js";
4
+ export declare type _IsNegative<N extends Iteration> = {
5
+ "-": True;
6
+ "+": False;
7
+ "0": False;
8
+ }[N[1]];
9
+ export declare type IsNegative<N extends number> = _IsNegative<IterationOf<N>>;
10
+ export declare type _IsPositive<N extends Iteration> = {
11
+ "-": False;
12
+ "+": True;
13
+ "0": False;
14
+ }[N[1]];
15
+ export declare type IsPositive<N extends number> = _IsPositive<IterationOf<N>>;
16
+ export declare type _IsZero<N extends Iteration> = {
17
+ "-": False;
18
+ "+": False;
19
+ "0": True;
20
+ }[N[1]];
21
+ export declare type IsZero<N extends number> = _IsZero<IterationOf<N>>;
22
+ export declare type _Negate<N extends Iteration> = IterationMap[N[4]];
23
+ export declare type Negate<N extends number> = N extends unknown ? _Negate<IterationOf<N>>[0] : never;
24
+ export declare type _AddPositive<N1 extends Iteration, N2 extends Iteration> = Pos<N2> extends 0 ? N1 : number extends Pos<N2> ? IterationOf<number> : _AddPositive<Next<N1>, Prev<N2>>;
25
+ export declare type AddPositive<N1 extends Iteration, N2 extends Iteration> = _AddPositive<N1, N2> extends infer X ? Cast<X, Iteration> : never;
26
+ export declare type _AddNegative<N1 extends Iteration, N2 extends Iteration> = Pos<N2> extends 0 ? N1 : number extends Pos<N2> ? IterationOf<number> : _AddNegative<Prev<N1>, Next<N2>>;
27
+ export declare type AddNegative<N1 extends Iteration, N2 extends Iteration> = _AddNegative<N1, N2> extends infer X ? Cast<X, Iteration> : never;
28
+ export declare type _Add<N1 extends Iteration, N2 extends Iteration> = {
29
+ [False]: AddPositive<N1, N2>;
30
+ [True]: AddNegative<N1, N2>;
31
+ }[_IsNegative<N2>];
32
+ export declare type Add<N1 extends number, N2 extends number> = N1 extends unknown ? N2 extends unknown ? _Add<IterationOf<N1>, IterationOf<N2>>[0] : never : never;
33
+ export declare type _Sub<N1 extends Iteration, N2 extends Iteration> = _Add<N1, _Negate<N2>>;
34
+ export declare type Sub<N1 extends number, N2 extends number> = N1 extends unknown ? N2 extends unknown ? _Add<IterationOf<N1>, _Negate<IterationOf<N2>>>[0] : never : never;
35
+ export declare type _Absolute<N extends Iteration> = {
36
+ [False]: N;
37
+ [True]: _Negate<N>;
38
+ }[_IsNegative<N>];
39
+ export declare type Absolute<N extends number> = N extends unknown ? _Absolute<IterationOf<N>> : never;
40
+ export declare type _Greater<N1 extends Iteration, N2 extends Iteration> = _IsPositive<_Sub<N1, N2>>;
41
+ export declare type Greater<X extends number, Y extends number> = X extends unknown ? Y extends unknown ? _Greater<IterationOf<X>, IterationOf<Y>> : never : never;
42
+ export declare type _Lower<N1 extends Iteration, N2 extends Iteration> = _Greater<N2, N1>;
43
+ export declare type Lower<X extends number, Y extends number> = X extends unknown ? Y extends unknown ? _Lower<IterationOf<X>, IterationOf<Y>> : never : never;
44
+ export declare type _GreaterEq<N1 extends Iteration, N2 extends Iteration> = Or<Equals<N1, N2>, _Greater<N1, N2>>;
45
+ export declare type GreaterEq<X extends number, Y extends number> = X extends unknown ? Y extends unknown ? _GreaterEq<IterationOf<X>, IterationOf<Y>> : never : never;
46
+ export declare type _LowerEq<N1 extends Iteration, N2 extends Iteration> = Or<Equals<N1, N2>, _Lower<N1, N2>>;
47
+ export declare type LowerEq<X extends number, Y extends number> = X extends unknown ? Y extends unknown ? _LowerEq<IterationOf<X>, IterationOf<Y>> : never : never;
48
+ export declare type Comparison = "<" | ">" | "<=" | ">=" | "==";
49
+ export declare type _Comp<N1 extends Iteration, C extends Comparison, N2 extends Iteration> = {
50
+ "<": _Lower<N1, N2>;
51
+ ">": _Greater<N1, N2>;
52
+ "<=": _LowerEq<N1, N2>;
53
+ ">=": _GreaterEq<N1, N2>;
54
+ "==": Equals<N1, N2>;
55
+ }[C];
56
+ export declare type Comp<X extends number, C extends Comparison, Y extends number> = X extends unknown ? Y extends unknown ? _Comp<IterationOf<X>, C, IterationOf<Y>> : never : never;
package/Object.d.ts ADDED
@@ -0,0 +1,118 @@
1
+ import type { At, Cast, Extends, Is, Key, Keys, Match } from "./Any.js";
2
+ import type { False, True } from "./Boolean.js";
3
+ import type { BuiltIn } from "./BuiltIn.js";
4
+ import type { Iteration, IterationOf, Next, Pos } from "./Iteration.js";
5
+ import type { Append, Head, Length, List, Pop, PrependAll, Tail } from "./List.js";
6
+ import type * as U from "./Union.js";
7
+ export declare type _Path<O, P extends List<Key>, I extends Iteration = IterationOf<0>> = {
8
+ [False]: _Path<At<O, P[Pos<I>]>, P, Next<I>>;
9
+ [True]: O;
10
+ }[Extends<Pos<I>, Length<P>>];
11
+ export declare type Path<O, P extends List<Key>> = _Path<O & {}, P> extends infer X ? Cast<X, any> : never;
12
+ declare type Index = number | string;
13
+ declare type KeyToIndex<K extends Key, SP extends List<Index>> = number extends K ? Head<SP> : K & Index;
14
+ declare const __Cont: unique symbol;
15
+ declare type __Cont = typeof __Cont;
16
+ declare const __Path: unique symbol;
17
+ declare type __Path = typeof __Path;
18
+ declare type _MetaPath<O, SP extends List<Index> = [], P extends List<Index> = []> = {
19
+ [K in keyof O]: {
20
+ [__Cont]: _MetaPath<O[K], Tail<SP>, Append<P, KeyToIndex<K, SP>>>;
21
+ [__Path]: Append<P, KeyToIndex<K, SP>>;
22
+ };
23
+ };
24
+ declare type MetaPath<O, SP extends List<Index> = [], P extends List<Index> = []> = {
25
+ [__Cont]: _MetaPath<O, SP, P>;
26
+ [__Path]: [];
27
+ };
28
+ declare type NextPath<OP> = At<UnionOf<At<OP, __Cont>>, __Path> extends infer X ? undefined extends X ? never : X : never;
29
+ declare type ExecPath<A, SP extends List<Index>> = NextPath<Path<MetaPath<A, SP>, PrependAll<SP, __Cont>>>;
30
+ declare type HintPath<A, SP extends List<Index>, Exec extends List<Index>> = [Exec] extends [never] ? ExecPath<A, Pop<SP>> : Exec | SP;
31
+ export declare type AutoPath<A, P extends List<Index>> = HintPath<A, P, ExecPath<A, P>>;
32
+ export declare type _UnionOf<O> = O[keyof O];
33
+ export declare type UnionOf<O> = O extends unknown ? _UnionOf<O> : never;
34
+ export declare type _RequiredKeys<O> = {
35
+ [K in keyof O]-?: {} extends Pick<O, K> ? never : K;
36
+ }[keyof O];
37
+ export declare type RequiredKeys<O> = O extends unknown ? _RequiredKeys<O> : never;
38
+ export declare type _OptionalKeys<O> = {
39
+ [K in keyof O]-?: {} extends Pick<O, K> ? K : never;
40
+ }[keyof O];
41
+ export declare type OptionalKeys<O> = O extends unknown ? _OptionalKeys<O> : never;
42
+ declare type __Pick<O, K extends keyof O> = {
43
+ [P in K]: O[P];
44
+ } & {};
45
+ export declare type _Pick<O, K extends Key> = __Pick<O, keyof O & K>;
46
+ export declare type Pick<O, K extends Key> = O extends unknown ? _Pick<O, K> : never;
47
+ export declare type _Omit<O, K extends Key> = _Pick<O, U.Exclude<keyof O, K>>;
48
+ export declare type Omit<O, K extends Key> = O extends unknown ? _Omit<O, K> : never;
49
+ export declare type Anyify<O> = {
50
+ [K in keyof O]: any;
51
+ };
52
+ export declare type _ExcludeMatch<O, O1, M extends Match> = {
53
+ [K in keyof O]-?: {
54
+ [True]: never;
55
+ [False]: K;
56
+ }[Is<O[K], At<O1, K>, M>];
57
+ }[keyof O];
58
+ export declare type ExcludeMatch<O, O1, M extends Match> = O extends unknown ? _ExcludeMatch<O, O1, M> : never;
59
+ export declare type ExcludeKeys<O, O1, M extends Match = "default"> = {
60
+ default: U.Exclude<Keys<O>, Keys<O1>>;
61
+ "contains->": ExcludeMatch<O, O1, "contains->">;
62
+ "extends->": ExcludeMatch<O, O1, "extends->">;
63
+ "<-contains": ExcludeMatch<O, O1, "<-contains">;
64
+ "<-extends": ExcludeMatch<O, O1, "<-extends">;
65
+ equals: ExcludeMatch<O, O1, "equals">;
66
+ }[M];
67
+ export declare type Exclude<O, O1, M extends Match> = Pick<O, ExcludeKeys<O, O1, M>>;
68
+ declare type Longer<L extends List, L1 extends List> = L extends unknown ? L1 extends unknown ? U.Has<RequiredKeys<L>, RequiredKeys<L1>> : never : never;
69
+ declare type MergeProp<OK, O1K, Fill, OOKeys extends Key, K extends Key> = K extends OOKeys ? U.Exclude<OK, undefined> | O1K : [OK] extends [never] ? O1K : OK extends Fill ? O1K : OK;
70
+ declare type MergeFlatObject<O, O1, Fill, OOKeys extends Key = OptionalKeys<O>> = {
71
+ [K in keyof (Anyify<O> & O1)]: MergeProp<At<O, K>, At<O1, K>, Fill, OOKeys, K>;
72
+ } & {};
73
+ declare type MergeFlatList<L extends List, L1 extends List, Ignore, Fill, LOK extends Key = _OptionalKeys<L>> = number extends Length<L | L1> ? MergeFlatChoice<L[number], L1[number], Ignore, Fill>[] : Longer<L, L1> extends True ? {
74
+ [K in keyof L]: MergeProp<L[K], At<L1, K>, Fill, LOK, K>;
75
+ } : {
76
+ [K in keyof L1]: MergeProp<At<L, K>, L1[K], Fill, LOK, K>;
77
+ };
78
+ declare type MergeFlatChoice<O, O1, Ignore, Fill> = O extends Ignore ? O : O1 extends Ignore ? O : O extends List ? O1 extends List ? MergeFlatList<O, O1, Ignore, Fill> : MergeFlatObject<O, O1, Fill> : MergeFlatObject<O, O1, Fill>;
79
+ export declare type MergeFlat<O, O1, Ignore = BuiltIn, Fill = undefined> = O extends unknown ? O1 extends unknown ? MergeFlatChoice<O, O1, Ignore, Fill> : never : never;
80
+ declare type MergeDeepList<L extends List, L1 extends List, Ignore, Fill> = number extends Length<L | L1> ? MergeDeepChoice<L[number], L1[number], Ignore, Fill, never, any>[] : Longer<L, L1> extends True ? {
81
+ [K in keyof L]: MergeDeepChoice<L[K], At<L1, K>, Ignore, Fill, _OptionalKeys<L>, K>;
82
+ } : {
83
+ [K in keyof L1]: MergeDeepChoice<At<L, K>, L1[K], Ignore, Fill, _OptionalKeys<L>, K>;
84
+ };
85
+ declare type MergeDeepObject<O, O1, Ignore, Fill, OOKeys extends Key = _OptionalKeys<O>> = {
86
+ [K in keyof (Anyify<O> & O1)]: MergeDeepChoice<At<O, K>, At<O1, K>, Ignore, Fill, OOKeys, K>;
87
+ };
88
+ declare type MergeDeepChoice<OK, O1K, Ignore, Fill, OOKeys extends Key, K extends Key> = [OK] extends [
89
+ never
90
+ ] ? MergeProp<OK, O1K, Fill, OOKeys, K> : [O1K] extends [never] ? MergeProp<OK, O1K, Fill, OOKeys, K> : OK extends Ignore ? MergeProp<OK, O1K, Fill, OOKeys, K> : O1K extends Ignore ? MergeProp<OK, O1K, Fill, OOKeys, K> : OK extends List ? O1K extends List ? MergeDeepList<OK, O1K, Ignore, Fill> : MergeProp<OK, O1K, Fill, OOKeys, K> : OK extends object ? O1K extends object ? MergeDeepObject<OK, O1K, Ignore, Fill> : MergeProp<OK, O1K, Fill, OOKeys, K> : MergeProp<OK, O1K, Fill, OOKeys, K>;
91
+ export declare type MergeDeep<O, O1, Ignore, Fill> = O extends unknown ? O1 extends unknown ? MergeDeepChoice<O, O1, Ignore, Fill, "x", "y"> : never : never;
92
+ declare type PatchProp<OK, O1K, Fill, OKeys extends Key, K extends Key> = K extends OKeys ? OK extends Fill ? O1K : OK : O1K;
93
+ /**
94
+ * @hidden
95
+ */
96
+ declare type PatchFlatObject<O, O1, Fill, OKeys extends Key = keyof O> = {
97
+ [K in keyof (O & _Omit<O1, OKeys>)]: PatchProp<At<O, K>, At<O1, K>, Fill, OKeys, K>;
98
+ } & {};
99
+ declare type PatchFlatList<L extends List, L1 extends List, Ignore, Fill> = number extends Length<L | L1> ? PatchFlatChoice<L[number], L1[number], Ignore, Fill>[] : Longer<L, L1> extends True ? {
100
+ [K in keyof L]: PatchProp<L[K], At<L1, K>, Fill, keyof L, K>;
101
+ } : {
102
+ [K in keyof L1]: PatchProp<At<L, K>, L1[K], Fill, keyof L, K>;
103
+ };
104
+ export declare type PatchFlatChoice<O, O1, Ignore, Fill> = O extends Ignore ? O : O1 extends Ignore ? O : O extends List ? O1 extends List ? PatchFlatList<O, O1, Ignore, Fill> : PatchFlatObject<O, O1, Fill> : PatchFlatObject<O, O1, Fill>;
105
+ export declare type PatchFlat<O, O1, Ignore = BuiltIn, Fill = never> = O extends unknown ? O1 extends unknown ? PatchFlatChoice<O, O1, Ignore, Fill> : never : never;
106
+ declare type PatchDeepList<L extends List, L1 extends List, Ignore, Fill> = number extends Length<L | L1> ? PatchDeepChoice<L[number], L1[number], Ignore, Fill, never, any>[] : Longer<L, L1> extends True ? {
107
+ [K in keyof L]: PatchDeepChoice<L[K], At<L1, K>, Ignore, Fill, keyof L, K>;
108
+ } : {
109
+ [K in keyof L1]: PatchDeepChoice<At<L, K>, L1[K], Ignore, Fill, keyof L, K>;
110
+ };
111
+ declare type PatchDeepObject<O, O1, Ignore, Fill, OKeys extends Key = keyof O> = {
112
+ [K in keyof (O & _Omit<O1, OKeys>)]: PatchDeepChoice<At<O, K>, At<O1, K>, Ignore, Fill, OKeys, K>;
113
+ };
114
+ declare type PatchDeepChoice<OK, O1K, Ignore, fill, OKeys extends Key, K extends Key> = [OK] extends [never] ? PatchProp<OK, O1K, fill, OKeys, K> : [O1K] extends [never] ? PatchProp<OK, O1K, fill, OKeys, K> : OK extends Ignore ? PatchProp<OK, O1K, fill, OKeys, K> : O1K extends Ignore ? PatchProp<OK, O1K, fill, OKeys, K> : OK extends List ? O1K extends List ? PatchDeepList<OK, O1K, Ignore, fill> : PatchProp<OK, O1K, fill, OKeys, K> : OK extends object ? O1K extends object ? PatchDeepObject<OK, O1K, Ignore, fill> : PatchProp<OK, O1K, fill, OKeys, K> : PatchProp<OK, O1K, fill, OKeys, K>;
115
+ export declare type PatchDeep<O, O1, Ignore, Fill> = O extends unknown ? O1 extends unknown ? PatchDeepChoice<O, O1, Ignore, Fill, "x", "y"> : never : never;
116
+ export declare type Diff<O, O1, M extends Match = "default"> = PatchFlat<Exclude<O, O1, M>, Exclude<O1, O, M>>;
117
+ export declare type EnforceNonEmpty<O> = keyof O extends never ? never : O;
118
+ export {};
package/String.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import type { Cast, Literal } from "./Any.js";
2
+ import type { List, Pop } from "./List.js";
3
+ declare type _Join<T extends List, D extends string> = T extends [] ? "" : T extends [Literal] ? `${T[0]}` : T extends [Literal, ...infer R] ? `${T[0]}${D}${_Join<R, D>}` : string;
4
+ export declare type Join<T extends List<Literal>, D extends string = ""> = _Join<T, D> extends infer X ? Cast<X, string> : never;
5
+ declare type __Split<S extends string, D extends string, T extends string[] = []> = S extends `${infer BS}${D}${infer AS}` ? __Split<AS, D, [...T, BS]> : [...T, S];
6
+ declare type _Split<S extends string, D extends string = ""> = D extends "" ? Pop<__Split<S, D>> : __Split<S, D>;
7
+ export declare type Split<S extends string, D extends string = ""> = _Split<S, D> extends infer X ? Cast<X, string[]> : never;
8
+ export {};
package/Union.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ import type { Cast, Equals, Extends, Is, Match } from "./Any.js";
2
+ import type { False, True } from "./Boolean.js";
3
+ import type { List, Prepend } from "./List.js";
4
+ export declare type IntersectionOf<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
5
+ export declare type Last<U> = IntersectionOf<U extends unknown ? (x: U) => void : never> extends (x: infer P) => void ? P : never;
6
+ declare type _ListOf<U, LN extends List = [], LastU = Last<U>> = Extends<[U], [never]> extends False ? _ListOf<Exclude<U, LastU>, Prepend<LN, LastU>> : LN;
7
+ export declare type ListOf<U> = _ListOf<U> extends infer X ? Cast<X, List> : never;
8
+ export declare type Has<A, B> = [B] extends [A] ? True : False;
9
+ export declare type Select<U, M, _ extends Match = "default"> = U extends unknown ? {
10
+ [False]: never;
11
+ [True]: U & M;
12
+ }[Is<U, M, _>] : never;
13
+ export declare type Filter<U, M, _ extends Match = "default"> = U extends unknown ? {
14
+ [False]: U & M;
15
+ [True]: never;
16
+ }[Is<U, M, _>] : never;
17
+ export declare type Intersect<A, B> = A extends unknown ? B extends unknown ? {
18
+ [True]: A;
19
+ [False]: never;
20
+ }[Equals<A, B>] : never : never;
21
+ export declare type Exclude<A, B> = A extends B ? never : A;
22
+ export declare type Pop<U> = Exclude<U, Last<U>>;
23
+ export {};
package/_cjs/Any.cjs ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=Any.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Any.cjs","names":[],"sources":["../esm/Any.js"],"sourcesContent":["export {};\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=Boolean.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Boolean.cjs","names":[],"sources":["../esm/Boolean.js"],"sourcesContent":["export {};\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=BuiltIn.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuiltIn.cjs","names":[],"sources":["../esm/BuiltIn.js"],"sourcesContent":["export {};\n"],"mappings":""}
package/_cjs/Check.cjs ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=Check.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Check.cjs","names":[],"sources":["../esm/Check.js"],"sourcesContent":["export {};\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=Function.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Function.cjs","names":[],"sources":["../esm/Function.js"],"sourcesContent":["export {};\n"],"mappings":""}
package/_cjs/HKT.cjs ADDED
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HKT = void 0;
7
+ // eslint-disable-next-line @typescript-eslint/no-namespace
8
+ var HKT;
9
+ exports.HKT = HKT;
10
+
11
+ (function (HKT) {
12
+ /*
13
+ * Instance util
14
+ */
15
+
16
+ /**
17
+ * @tsplus macro identity
18
+ */
19
+ function instance(_) {
20
+ // @ts-expect-error: typelevel utility
21
+ return _;
22
+ }
23
+
24
+ HKT.instance = instance;
25
+ })(HKT || (exports.HKT = HKT = {}));
26
+ //# sourceMappingURL=HKT.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HKT.cjs","names":["HKT","instance","_"],"sources":["../esm/HKT.js"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-namespace\nexport var HKT;\n(function (HKT) {\n /*\n * Instance util\n */\n /**\n * @tsplus macro identity\n */\n function instance(_) {\n // @ts-expect-error: typelevel utility\n return _;\n }\n HKT.instance = instance;\n})(HKT || (HKT = {}));\n"],"mappings":";;;;;;AAAA;AACO,IAAIA,GAAJ;;;AACP,CAAC,UAAUA,GAAV,EAAe;EACZ;AACJ;AACA;;EACI;AACJ;AACA;EACI,SAASC,QAAT,CAAkBC,CAAlB,EAAqB;IACjB;IACA,OAAOA,CAAP;EACH;;EACDF,GAAG,CAACC,QAAJ,GAAeA,QAAf;AACH,CAZD,EAYGD,GAAG,mBAAKA,GAAG,GAAG,EAAX,CAZN"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=Intersection.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Intersection.cjs","names":[],"sources":["../esm/Intersection.js"],"sourcesContent":["export {};\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=Iteration.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Iteration.cjs","names":[],"sources":["../esm/Iteration.js"],"sourcesContent":["export {};\n"],"mappings":""}
package/_cjs/List.cjs ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=List.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.cjs","names":[],"sources":["../esm/List.js"],"sourcesContent":["export {};\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=Number.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Number.cjs","names":[],"sources":["../esm/Number.js"],"sourcesContent":["export {};\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=Object.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Object.cjs","names":[],"sources":["../esm/Object.js"],"sourcesContent":["export {};\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=String.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"String.cjs","names":[],"sources":["../esm/String.js"],"sourcesContent":["export {};\n"],"mappings":""}
package/_cjs/Union.cjs ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=Union.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Union.cjs","names":[],"sources":["../esm/Union.js"],"sourcesContent":["export {};\n"],"mappings":""}
package/_cjs/index.cjs ADDED
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Union = exports.String = exports.Object = exports.Number = exports.List = exports.Iteration = exports.Intersection = exports.Function = exports.Boolean = exports.Any = void 0;
7
+
8
+ var _Any = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./Any.js"));
9
+
10
+ exports.Any = _Any;
11
+
12
+ var _Boolean = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./Boolean.js"));
13
+
14
+ exports.Boolean = _Boolean;
15
+
16
+ var _Function = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./Function.js"));
17
+
18
+ exports.Function = _Function;
19
+
20
+ var _Intersection = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./Intersection.js"));
21
+
22
+ exports.Intersection = _Intersection;
23
+
24
+ var _Iteration = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./Iteration.js"));
25
+
26
+ exports.Iteration = _Iteration;
27
+
28
+ var _List = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./List.js"));
29
+
30
+ exports.List = _List;
31
+
32
+ var _Number = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./Number.js"));
33
+
34
+ exports.Number = _Number;
35
+
36
+ var _Object = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./Object.js"));
37
+
38
+ exports.Object = _Object;
39
+
40
+ var _String = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./String.js"));
41
+
42
+ exports.String = _String;
43
+
44
+ var _Union = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./Union.js"));
45
+
46
+ exports.Union = _Union;
47
+
48
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
49
+
50
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
51
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../esm/index.js"],"sourcesContent":["export * as Any from \"./Any.js\";\nexport * as Boolean from \"./Boolean.js\";\nexport * as Function from \"./Function.js\";\nexport * as Intersection from \"./Intersection.js\";\nexport * as Iteration from \"./Iteration.js\";\nexport * as List from \"./List.js\";\nexport * as Number from \"./Number.js\";\nexport * as Object from \"./Object.js\";\nexport * as String from \"./String.js\";\nexport * as Union from \"./Union.js\";\n"],"mappings":""}
package/_mjs/Any.mjs ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Any.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Any.mjs","names":[],"sources":["../esm/Any.js"],"sourcesContent":["export {};\n"],"mappings":"AAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Boolean.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Boolean.mjs","names":[],"sources":["../esm/Boolean.js"],"sourcesContent":["export {};\n"],"mappings":"AAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BuiltIn.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuiltIn.mjs","names":[],"sources":["../esm/BuiltIn.js"],"sourcesContent":["export {};\n"],"mappings":"AAAA"}
package/_mjs/Check.mjs ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Check.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Check.mjs","names":[],"sources":["../esm/Check.js"],"sourcesContent":["export {};\n"],"mappings":"AAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Function.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Function.mjs","names":[],"sources":["../esm/Function.js"],"sourcesContent":["export {};\n"],"mappings":"AAAA"}
package/_mjs/HKT.mjs ADDED
@@ -0,0 +1,19 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-namespace
2
+ export var HKT;
3
+
4
+ (function (HKT) {
5
+ /*
6
+ * Instance util
7
+ */
8
+
9
+ /**
10
+ * @tsplus macro identity
11
+ */
12
+ function instance(_) {
13
+ // @ts-expect-error: typelevel utility
14
+ return _;
15
+ }
16
+
17
+ HKT.instance = instance;
18
+ })(HKT || (HKT = {}));
19
+ //# sourceMappingURL=HKT.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HKT.mjs","names":["HKT","instance","_"],"sources":["../esm/HKT.js"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-namespace\nexport var HKT;\n(function (HKT) {\n /*\n * Instance util\n */\n /**\n * @tsplus macro identity\n */\n function instance(_) {\n // @ts-expect-error: typelevel utility\n return _;\n }\n HKT.instance = instance;\n})(HKT || (HKT = {}));\n"],"mappings":"AAAA;AACA,OAAO,IAAIA,GAAJ;;AACP,CAAC,UAAUA,GAAV,EAAe;EACZ;AACJ;AACA;;EACI;AACJ;AACA;EACI,SAASC,QAAT,CAAkBC,CAAlB,EAAqB;IACjB;IACA,OAAOA,CAAP;EACH;;EACDF,GAAG,CAACC,QAAJ,GAAeA,QAAf;AACH,CAZD,EAYGD,GAAG,KAAKA,GAAG,GAAG,EAAX,CAZN"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Intersection.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Intersection.mjs","names":[],"sources":["../esm/Intersection.js"],"sourcesContent":["export {};\n"],"mappings":"AAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Iteration.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Iteration.mjs","names":[],"sources":["../esm/Iteration.js"],"sourcesContent":["export {};\n"],"mappings":"AAAA"}
package/_mjs/List.mjs ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=List.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.mjs","names":[],"sources":["../esm/List.js"],"sourcesContent":["export {};\n"],"mappings":"AAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Number.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Number.mjs","names":[],"sources":["../esm/Number.js"],"sourcesContent":["export {};\n"],"mappings":"AAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Object.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Object.mjs","names":[],"sources":["../esm/Object.js"],"sourcesContent":["export {};\n"],"mappings":"AAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=String.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"String.mjs","names":[],"sources":["../esm/String.js"],"sourcesContent":["export {};\n"],"mappings":"AAAA"}
package/_mjs/Union.mjs ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Union.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Union.mjs","names":[],"sources":["../esm/Union.js"],"sourcesContent":["export {};\n"],"mappings":"AAAA"}
package/_mjs/index.mjs ADDED
@@ -0,0 +1,21 @@
1
+ import * as _Any from "./Any.mjs";
2
+ export { _Any as Any };
3
+ import * as _Boolean from "./Boolean.mjs";
4
+ export { _Boolean as Boolean };
5
+ import * as _Function from "./Function.mjs";
6
+ export { _Function as Function };
7
+ import * as _Intersection from "./Intersection.mjs";
8
+ export { _Intersection as Intersection };
9
+ import * as _Iteration from "./Iteration.mjs";
10
+ export { _Iteration as Iteration };
11
+ import * as _List from "./List.mjs";
12
+ export { _List as List };
13
+ import * as _Number from "./Number.mjs";
14
+ export { _Number as Number };
15
+ import * as _Object from "./Object.mjs";
16
+ export { _Object as Object };
17
+ import * as _String from "./String.mjs";
18
+ export { _String as String };
19
+ import * as _Union from "./Union.mjs";
20
+ export { _Union as Union };
21
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["Any","Boolean","Function","Intersection","Iteration","List","Number","Object","String","Union"],"sources":["../esm/index.js"],"sourcesContent":["export * as Any from \"./Any.js\";\nexport * as Boolean from \"./Boolean.js\";\nexport * as Function from \"./Function.js\";\nexport * as Intersection from \"./Intersection.js\";\nexport * as Iteration from \"./Iteration.js\";\nexport * as List from \"./List.js\";\nexport * as Number from \"./Number.js\";\nexport * as Object from \"./Object.js\";\nexport * as String from \"./String.js\";\nexport * as Union from \"./Union.js\";\n"],"mappings":"sBAAqB,W;iBAATA,G;0BACa,e;qBAAbC,O;2BACc,gB;sBAAdC,Q;+BACkB,oB;0BAAlBC,Y;4BACe,iB;uBAAfC,S;uBACU,Y;kBAAVC,I;yBACY,c;oBAAZC,M;yBACY,c;oBAAZC,M;yBACY,c;oBAAZC,M;wBACW,a;mBAAXC,K"}