functype 0.8.43 → 0.8.44
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.
- package/dist/collections/index.d.mts +1 -1
- package/dist/collections/index.d.ts +1 -1
- package/dist/core/task/Task.d.mts +1 -1
- package/dist/core/task/Task.d.ts +1 -1
- package/dist/either/Either.d.mts +1 -1
- package/dist/either/Either.d.ts +1 -1
- package/dist/{index-nj1jVrpW.d.mts → index-CCrywtih.d.mts} +2 -2
- package/dist/{index--8rlykpD.d.ts → index-CpEbFn27.d.ts} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/iterable/index.d.mts +1 -1
- package/dist/iterable/index.d.ts +1 -1
- package/dist/list/List.d.mts +1 -1
- package/dist/list/List.d.ts +1 -1
- package/dist/map/Map.d.mts +1 -1
- package/dist/map/Map.d.ts +1 -1
- package/dist/option/Option.d.mts +1 -1
- package/dist/option/Option.d.ts +1 -1
- package/dist/set/Set.d.mts +1 -1
- package/dist/set/Set.d.ts +1 -1
- package/dist/try/Try.d.mts +1 -1
- package/dist/try/Try.d.ts +1 -1
- package/dist/util/index.d.mts +1 -1
- package/dist/util/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-
|
|
1
|
+
export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-CCrywtih.mjs';
|
|
2
2
|
import '../error/Throwable.mjs';
|
|
3
3
|
import '../../functor/index.mjs';
|
|
4
4
|
import '../base/Base.mjs';
|
package/dist/core/task/Task.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index
|
|
1
|
+
export { A as AppException, h as AppResult, k as AsyncTask, j as Task } from '../../index-CpEbFn27.js';
|
|
2
2
|
import '../error/Throwable.js';
|
|
3
3
|
import '../../functor/index.js';
|
|
4
4
|
import '../base/Base.js';
|
package/dist/either/Either.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../functor/index.mjs';
|
|
2
|
-
export { E as Either, c as Left, R as Right, T as TestEither, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from '../index-
|
|
2
|
+
export { E as Either, c as Left, R as Right, T as TestEither, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from '../index-CCrywtih.mjs';
|
|
3
3
|
import '../typeable/Typeable.mjs';
|
|
4
4
|
import '../core/base/Base.mjs';
|
|
5
5
|
import '../core/error/Throwable.mjs';
|
package/dist/either/Either.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../functor/index.js';
|
|
2
|
-
export { E as Either, c as Left, R as Right, T as TestEither, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from '../index
|
|
2
|
+
export { E as Either, c as Left, R as Right, T as TestEither, f as TypeCheckLeft, e as TypeCheckRight, d as isLeft, i as isRight, t as tryCatch, g as tryCatchAsync } from '../index-CpEbFn27.js';
|
|
3
3
|
import '../typeable/Typeable.js';
|
|
4
4
|
import '../core/base/Base.js';
|
|
5
5
|
import '../core/error/Throwable.js';
|
|
@@ -63,7 +63,7 @@ type IterableType<A extends Type> = {
|
|
|
63
63
|
map<B extends Type>(f: (a: A) => B): IterableType<B>;
|
|
64
64
|
flatMap<B extends Type>(f: (a: A) => IterableType<B>): IterableType<B>;
|
|
65
65
|
get size(): number;
|
|
66
|
-
toArray<B
|
|
66
|
+
toArray<B = A>(): readonly B[];
|
|
67
67
|
toValue: () => {
|
|
68
68
|
_tag: string;
|
|
69
69
|
value: A[];
|
|
@@ -113,7 +113,7 @@ type List<A> = {
|
|
|
113
113
|
readonly head: A;
|
|
114
114
|
readonly headOption: Option<A>;
|
|
115
115
|
readonly isEmpty: boolean;
|
|
116
|
-
toArray: <B
|
|
116
|
+
toArray: <B = A>() => B[];
|
|
117
117
|
reduce: (f: (prev: A, curr: A) => A) => A;
|
|
118
118
|
reduceRight: (f: (prev: A, curr: A) => A) => A;
|
|
119
119
|
foldLeft: <B>(z: B) => (op: (b: B, a: A) => B) => B;
|
|
@@ -63,7 +63,7 @@ type IterableType<A extends Type> = {
|
|
|
63
63
|
map<B extends Type>(f: (a: A) => B): IterableType<B>;
|
|
64
64
|
flatMap<B extends Type>(f: (a: A) => IterableType<B>): IterableType<B>;
|
|
65
65
|
get size(): number;
|
|
66
|
-
toArray<B
|
|
66
|
+
toArray<B = A>(): readonly B[];
|
|
67
67
|
toValue: () => {
|
|
68
68
|
_tag: string;
|
|
69
69
|
value: A[];
|
|
@@ -113,7 +113,7 @@ type List<A> = {
|
|
|
113
113
|
readonly head: A;
|
|
114
114
|
readonly headOption: Option<A>;
|
|
115
115
|
readonly isEmpty: boolean;
|
|
116
|
-
toArray: <B
|
|
116
|
+
toArray: <B = A>() => B[];
|
|
117
117
|
reduce: (f: (prev: A, curr: A) => A) => A;
|
|
118
118
|
reduceRight: (f: (prev: A, curr: A) => A) => A;
|
|
119
119
|
foldLeft: <B>(z: B) => (op: (b: B, a: A) => B) => B;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, Functor, SingleType, Type } from './functor/index.mjs';
|
|
2
2
|
export { Base } from './core/base/Base.mjs';
|
|
3
3
|
export { Throwable } from './core/error/Throwable.mjs';
|
|
4
|
-
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-
|
|
4
|
+
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-CCrywtih.mjs';
|
|
5
5
|
export { Identity } from './identity/Identity.mjs';
|
|
6
6
|
export { Tuple } from './tuple/Tuple.mjs';
|
|
7
7
|
export { TypeGuard, Typeable, UnTag } from './typeable/Typeable.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AbstractFunctor, ArrayFunctor, ArrayType, AsyncFunctor, Functor, SingleType, Type } from './functor/index.js';
|
|
2
2
|
export { Base } from './core/base/Base.js';
|
|
3
3
|
export { Throwable } from './core/error/Throwable.js';
|
|
4
|
-
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
|
|
4
|
+
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-CpEbFn27.js';
|
|
5
5
|
export { Identity } from './identity/Identity.js';
|
|
6
6
|
export { Tuple } from './tuple/Tuple.js';
|
|
7
7
|
export { TypeGuard, Typeable, UnTag } from './typeable/Typeable.js';
|
package/dist/iterable/index.d.ts
CHANGED
package/dist/list/List.d.mts
CHANGED
package/dist/list/List.d.ts
CHANGED
package/dist/map/Map.d.mts
CHANGED
package/dist/map/Map.d.ts
CHANGED
package/dist/option/Option.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../functor/index.mjs';
|
|
2
|
-
export { N as None, O as Option, S as Some } from '../index-
|
|
2
|
+
export { N as None, O as Option, S as Some } from '../index-CCrywtih.mjs';
|
|
3
3
|
import '../typeable/Typeable.mjs';
|
|
4
4
|
import '../valuable/Valuable.mjs';
|
|
5
5
|
import '../core/base/Base.mjs';
|
package/dist/option/Option.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../functor/index.js';
|
|
2
|
-
export { N as None, O as Option, S as Some } from '../index
|
|
2
|
+
export { N as None, O as Option, S as Some } from '../index-CpEbFn27.js';
|
|
3
3
|
import '../typeable/Typeable.js';
|
|
4
4
|
import '../valuable/Valuable.js';
|
|
5
5
|
import '../core/base/Base.js';
|
package/dist/set/Set.d.mts
CHANGED
package/dist/set/Set.d.ts
CHANGED
package/dist/try/Try.d.mts
CHANGED
package/dist/try/Try.d.ts
CHANGED
package/dist/util/index.d.mts
CHANGED
package/dist/util/index.d.ts
CHANGED