@fncts/base 0.0.15 → 0.0.18

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/_cjs/data/Environment/api.cjs +15 -25
  2. package/_cjs/data/Environment/api.cjs.map +1 -1
  3. package/_cjs/data/Environment/definition.cjs +1 -2
  4. package/_cjs/data/Environment/definition.cjs.map +1 -1
  5. package/_cjs/data/Patch/api.cjs +3 -3
  6. package/_cjs/data/Patch/api.cjs.map +1 -1
  7. package/_cjs/data/Tag/constructors.cjs +5 -2
  8. package/_cjs/data/Tag/constructors.cjs.map +1 -1
  9. package/_cjs/data/Tag/definition.cjs +3 -3
  10. package/_cjs/data/Tag/definition.cjs.map +1 -1
  11. package/_mjs/data/Environment/api.mjs +12 -21
  12. package/_mjs/data/Environment/api.mjs.map +1 -1
  13. package/_mjs/data/Environment/definition.mjs +1 -2
  14. package/_mjs/data/Environment/definition.mjs.map +1 -1
  15. package/_mjs/data/Patch/api.mjs +3 -3
  16. package/_mjs/data/Patch/api.mjs.map +1 -1
  17. package/_mjs/data/Tag/constructors.mjs +4 -2
  18. package/_mjs/data/Tag/constructors.mjs.map +1 -1
  19. package/_mjs/data/Tag/definition.mjs +3 -3
  20. package/_mjs/data/Tag/definition.mjs.map +1 -1
  21. package/_src/data/Environment/api.ts +8 -14
  22. package/_src/data/Environment/definition.ts +1 -2
  23. package/_src/data/Patch/api.ts +4 -4
  24. package/_src/data/Tag/constructors.ts +5 -2
  25. package/_src/data/Tag/definition.ts +3 -2
  26. package/collection/compat/Array/definition.d.ts +2 -2
  27. package/collection/immutable/Conc/definition.d.ts +1 -1
  28. package/collection/immutable/HashMap/definition.d.ts +1 -1
  29. package/collection/immutable/HashMap/internal.d.ts +3 -3
  30. package/collection/immutable/HashSet/definition.d.ts +1 -1
  31. package/collection/immutable/ImmutableArray/definition.d.ts +1 -1
  32. package/collection/immutable/List/definition.d.ts +1 -1
  33. package/collection/immutable/RoseTree/definition.d.ts +1 -1
  34. package/collection/immutable/SortedMap/node.d.ts +2 -2
  35. package/collection/immutable/Vector/definition.d.ts +1 -1
  36. package/collection/immutable/Vector/internal.d.ts +2 -2
  37. package/control/Eval/definition.d.ts +2 -2
  38. package/control/Z/definition.d.ts +3 -3
  39. package/data/Branded/definition.d.ts +1 -1
  40. package/data/Byte.d.ts +1 -1
  41. package/data/CaseClass.d.ts +1 -1
  42. package/data/Cause/definition.d.ts +2 -2
  43. package/data/Datum/definition.d.ts +2 -2
  44. package/data/DatumEither/definition.d.ts +1 -1
  45. package/data/DecodeError/definition.d.ts +1 -1
  46. package/data/Decoder/definition.d.ts +1 -1
  47. package/data/Duration/definition.d.ts +1 -1
  48. package/data/Either/definition.d.ts +1 -1
  49. package/data/EitherT/definition.d.ts +1 -1
  50. package/data/Environment/api.d.ts +1 -1
  51. package/data/Environment/definition.d.ts +3 -4
  52. package/data/ExecutionStrategy.d.ts +1 -1
  53. package/data/Exit/definition.d.ts +2 -2
  54. package/data/FiberId/definition.d.ts +3 -3
  55. package/data/Maybe/definition.d.ts +1 -1
  56. package/data/Patch/definition.d.ts +2 -2
  57. package/data/Struct/api.d.ts +5 -5
  58. package/data/Tag/constructors.d.ts +2 -1
  59. package/data/Tag/definition.d.ts +3 -2
  60. package/data/These/definition.d.ts +2 -2
  61. package/data/TraceElement/definition.d.ts +1 -1
  62. package/data/Zipped.d.ts +2 -2
  63. package/data/exceptions/InterruptedException.d.ts +1 -1
  64. package/json/EitherJson.d.ts +1 -1
  65. package/json/MaybeJson.d.ts +1 -1
  66. package/json/TheseJson.d.ts +1 -1
  67. package/optics/At/definition.d.ts +1 -1
  68. package/optics/Index/definition.d.ts +1 -1
  69. package/package.json +3 -2
  70. package/typeclass/Applicative.d.ts +1 -1
  71. package/typeclass/Apply.d.ts +2 -2
  72. package/typeclass/Equatable/fast-equals.d.ts +4 -4
  73. package/typeclass/Guard/definition.d.ts +1 -1
  74. package/typeclass/Has.d.ts +1 -1
  75. package/typeclass/HashEq.d.ts +1 -1
  76. package/typeclass/Monoid.d.ts +1 -1
  77. package/typeclass/Ordering.d.ts +1 -1
  78. package/typeclass/Showable/show.d.ts +4 -4
  79. package/typeclass/Showable/styles.d.ts +5 -5
  80. package/types/extractions.d.ts +8 -8
  81. package/types/utility.d.ts +4 -4
  82. package/util/PCGRandom.d.ts +2 -2
  83. package/util/predicates.d.ts +1 -1
  84. package/util/rand/distribution/Distribution.d.ts +1 -1
  85. package/util/rand/distribution/internals/ArrayInt.d.ts +2 -2
@@ -31,9 +31,9 @@ export interface ShowOptions {
31
31
  }
32
32
  export declare class ShowContext extends CaseClass<ShowContextArgs> {
33
33
  }
34
- export declare type ShowComputationZ<A> = Z<never, ShowContext, ShowContext, never, never, A>;
35
- export declare type ShowComputation = ShowComputationZ<string>;
36
- export declare type ShowComputationChunk = ShowComputationZ<Conc<string>>;
34
+ export type ShowComputationZ<A> = Z<never, ShowContext, ShowContext, never, never, A>;
35
+ export type ShowComputation = ShowComputationZ<string>;
36
+ export type ShowComputationChunk = ShowComputationZ<Conc<string>>;
37
37
  export interface ShowComputationPrimitive {
38
38
  readonly _tag: "Primitive";
39
39
  readonly computation: ShowComputation;
@@ -48,7 +48,7 @@ export interface ShowComputationComplex {
48
48
  braces?: [string, string];
49
49
  }
50
50
  export declare function showComputationComplex(args: Omit<ShowComputationComplex, "_tag">): ShowComputationComplex;
51
- export declare type ShowComputationExternal = ShowComputationPrimitive | ShowComputationComplex;
51
+ export type ShowComputationExternal = ShowComputationPrimitive | ShowComputationComplex;
52
52
  export declare function show(value: unknown): string;
53
53
  export declare function showWithOptions(value: unknown, options: Partial<ShowOptions>): string;
54
54
  export declare function _show(value: unknown): ShowComputation;
@@ -1,8 +1,8 @@
1
- export declare type Style = "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "bold" | "italic" | "underline";
2
- export declare type ShowGroup = "string" | "number" | "boolean" | "bigint" | "special" | "undefined" | "null" | "symbol" | "date" | "regexp" | "module" | "dim";
3
- export declare type ShowStyle = Record<ShowGroup, (s: string) => string>;
1
+ export type Style = "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "bold" | "italic" | "underline";
2
+ export type ShowGroup = "string" | "number" | "boolean" | "bigint" | "special" | "undefined" | "null" | "symbol" | "date" | "regexp" | "module" | "dim";
3
+ export type ShowStyle = Record<ShowGroup, (s: string) => string>;
4
4
  export declare const defaultShowStyle: ShowStyle;
5
- export declare type StyleFunction = (str: string, group: ShowGroup) => string;
6
- export declare type GetStyle = (group: ShowGroup) => string;
5
+ export type StyleFunction = (str: string, group: ShowGroup) => string;
6
+ export type GetStyle = (group: ShowGroup) => string;
7
7
  export declare function stylizeWithColor(str: string, group: ShowGroup): string;
8
8
  export declare function stylizeNoColor(str: string, _: ShowGroup): string;
@@ -1,12 +1,12 @@
1
- export declare type ExtractContravariantPhantom<A, P extends PropertyKey> = [A] extends [{
1
+ export type ExtractContravariantPhantom<A, P extends PropertyKey> = [A] extends [{
2
2
  [K in P]: (_: infer T) => void;
3
3
  }] ? T : never;
4
- export declare type ExtractCovariantPhantom<A, P extends PropertyKey> = [A] extends [{
4
+ export type ExtractCovariantPhantom<A, P extends PropertyKey> = [A] extends [{
5
5
  [K in P]: () => infer T;
6
6
  }] ? T : never;
7
- export declare type _W<A> = ExtractCovariantPhantom<A, "_W">;
8
- export declare type _S1<A> = ExtractContravariantPhantom<A, "_S1">;
9
- export declare type _S2<A> = ExtractCovariantPhantom<A, "_S2">;
10
- export declare type _R<A> = ExtractCovariantPhantom<A, "_R">;
11
- export declare type _E<A> = ExtractCovariantPhantom<A, "_E">;
12
- export declare type _A<A> = ExtractCovariantPhantom<A, "_A">;
7
+ export type _W<A> = ExtractCovariantPhantom<A, "_W">;
8
+ export type _S1<A> = ExtractContravariantPhantom<A, "_S1">;
9
+ export type _S2<A> = ExtractCovariantPhantom<A, "_S2">;
10
+ export type _R<A> = ExtractCovariantPhantom<A, "_R">;
11
+ export type _E<A> = ExtractCovariantPhantom<A, "_E">;
12
+ export type _A<A> = ExtractCovariantPhantom<A, "_A">;
@@ -1,8 +1,8 @@
1
- export declare type Primitive = string | number | boolean | null | symbol;
2
- export declare type Constructor<A> = {
1
+ export type Primitive = string | number | boolean | null | symbol;
2
+ export type Constructor<A> = {
3
3
  new (...args: any[]): A;
4
4
  };
5
- export declare type Nullable<A> = A | null | undefined;
6
- export declare type IsInt<N extends number> = N & (`${N}` extends `${bigint}` ? N : never);
5
+ export type Nullable<A> = A | null | undefined;
6
+ export type IsInt<N extends number> = N & (`${N}` extends `${bigint}` ? N : never);
7
7
  export interface Spreadable extends Record<PropertyKey, any> {
8
8
  }
@@ -1,6 +1,6 @@
1
1
  export declare function isNothing<T>(value: T | null | undefined): boolean;
2
- export declare type PCGRandomState = [number, number, number, number];
3
- export declare type OptionalNumber = number | null | undefined;
2
+ export type PCGRandomState = [number, number, number, number];
3
+ export type OptionalNumber = number | null | undefined;
4
4
  /**
5
5
  * PCG is a family of simple fast space-efficient statistically good algorithms for random number generation. Unlike
6
6
  * many general-purpose RNGs, they are also hard to predict.
@@ -29,7 +29,7 @@ export declare function isPromise(u: unknown): u is Promise<unknown>;
29
29
  export declare function isSet(u: unknown): u is Set<unknown>;
30
30
  export declare function isWeakSet(u: unknown): u is WeakSet<object>;
31
31
  export declare function isDate(u: unknown): u is Date;
32
- export declare type TypedArray = BigInt64Array | BigUint64Array | Float64Array | Float32Array | Int32Array | Int16Array | Int8Array | Uint32Array | Uint16Array | Uint8Array | Uint8ClampedArray;
32
+ export type TypedArray = BigInt64Array | BigUint64Array | Float64Array | Float32Array | Int32Array | Int16Array | Int8Array | Uint32Array | Uint16Array | Uint8Array | Uint8ClampedArray;
33
33
  export declare function isTypedArray(u: unknown): u is TypedArray;
34
34
  export declare function isRegExp(u: unknown): u is RegExp;
35
35
  export declare function isAnyArrayBuffer(u: unknown): u is ArrayBuffer | SharedArrayBuffer;
@@ -4,6 +4,6 @@ import type { RandomGenerator } from "@fncts/base/util/rand/generator/RandomGene
4
4
  * Return the generated value and an offsetted version of the RandomGenerator.
5
5
  * @public
6
6
  */
7
- declare type Distribution<T> = (rng: RandomGenerator) => T;
7
+ type Distribution<T> = (rng: RandomGenerator) => T;
8
8
  export default Distribution;
9
9
  export { Distribution };
@@ -10,7 +10,7 @@
10
10
  * { sign: -1, data: [ 1, 5, 42 ] } // = -1 * (1 * 2**64 + 5 * 2**32 + 42)
11
11
  * ```
12
12
  */
13
- export declare type ArrayInt = {
13
+ export type ArrayInt = {
14
14
  /**
15
15
  * Sign of the represented number
16
16
  */
@@ -41,7 +41,7 @@ export declare function substractArrayIntToNew(arrayIntA: ArrayInt, arrayIntB: A
41
41
  */
42
42
  export declare function trimArrayIntInplace(arrayInt: ArrayInt): ArrayInt;
43
43
  /** @internal */
44
- export declare type ArrayInt64 = Required<ArrayInt> & {
44
+ export type ArrayInt64 = Required<ArrayInt> & {
45
45
  data: [number, number];
46
46
  };
47
47
  /**