@nicolastoulemont/std 0.1.0
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/README.md +1 -0
- package/dist/adt/index.d.mts +2 -0
- package/dist/adt/index.mjs +3 -0
- package/dist/adt-DraJkmij.mjs +318 -0
- package/dist/adt-DraJkmij.mjs.map +1 -0
- package/dist/apply-fn.types-CXDoeA7D.d.mts +8 -0
- package/dist/apply-fn.types-CXDoeA7D.d.mts.map +1 -0
- package/dist/brand/index.d.mts +2 -0
- package/dist/brand/index.mjs +3 -0
- package/dist/brand-CTaxGuU9.mjs +165 -0
- package/dist/brand-CTaxGuU9.mjs.map +1 -0
- package/dist/data/index.d.mts +2 -0
- package/dist/data/index.mjs +3 -0
- package/dist/data-DgzWI4R_.mjs +244 -0
- package/dist/data-DgzWI4R_.mjs.map +1 -0
- package/dist/discriminator.types-DCkkrCj4.d.mts +7 -0
- package/dist/discriminator.types-DCkkrCj4.d.mts.map +1 -0
- package/dist/either/index.d.mts +2 -0
- package/dist/either/index.mjs +3 -0
- package/dist/either-CnOBUH7a.mjs +598 -0
- package/dist/either-CnOBUH7a.mjs.map +1 -0
- package/dist/equality/index.d.mts +86 -0
- package/dist/equality/index.d.mts.map +1 -0
- package/dist/equality/index.mjs +3 -0
- package/dist/equality-YMebYwm1.mjs +201 -0
- package/dist/equality-YMebYwm1.mjs.map +1 -0
- package/dist/err/index.d.mts +2 -0
- package/dist/err/index.mjs +3 -0
- package/dist/err-BqQApH9r.mjs +169 -0
- package/dist/err-BqQApH9r.mjs.map +1 -0
- package/dist/flow/index.d.mts +2 -0
- package/dist/flow/index.mjs +3 -0
- package/dist/flow-pRdnqmMY.mjs +21 -0
- package/dist/flow-pRdnqmMY.mjs.map +1 -0
- package/dist/gen/index.d.mts +3 -0
- package/dist/gen/index.mjs +3 -0
- package/dist/gen-YfMC9sDT.mjs +42 -0
- package/dist/gen-YfMC9sDT.mjs.map +1 -0
- package/dist/index-BCrD3pEs.d.mts +222 -0
- package/dist/index-BCrD3pEs.d.mts.map +1 -0
- package/dist/index-BR7takNf.d.mts +186 -0
- package/dist/index-BR7takNf.d.mts.map +1 -0
- package/dist/index-CcPnhWje.d.mts +72 -0
- package/dist/index-CcPnhWje.d.mts.map +1 -0
- package/dist/index-CtJ8Ks9X.d.mts +105 -0
- package/dist/index-CtJ8Ks9X.d.mts.map +1 -0
- package/dist/index-CvGTIg9L.d.mts +211 -0
- package/dist/index-CvGTIg9L.d.mts.map +1 -0
- package/dist/index-DPVT0yK4.d.mts +50 -0
- package/dist/index-DPVT0yK4.d.mts.map +1 -0
- package/dist/index-DgOAEEpu.d.mts +79 -0
- package/dist/index-DgOAEEpu.d.mts.map +1 -0
- package/dist/index-Dtq3kmln.d.mts +394 -0
- package/dist/index-Dtq3kmln.d.mts.map +1 -0
- package/dist/index-bLRqTe5I.d.mts +80 -0
- package/dist/index-bLRqTe5I.d.mts.map +1 -0
- package/dist/index-tkgTLCoq.d.mts +80 -0
- package/dist/index-tkgTLCoq.d.mts.map +1 -0
- package/dist/index-wTrnFgYg.d.mts +57 -0
- package/dist/index-wTrnFgYg.d.mts.map +1 -0
- package/dist/index-yyBTq8Ys.d.mts +79 -0
- package/dist/index-yyBTq8Ys.d.mts.map +1 -0
- package/dist/index.d.mts +135 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +41 -0
- package/dist/index.mjs.map +1 -0
- package/dist/is-promise-BEl3eGZg.mjs +11 -0
- package/dist/is-promise-BEl3eGZg.mjs.map +1 -0
- package/dist/option/index.d.mts +3 -0
- package/dist/option/index.mjs +3 -0
- package/dist/option-CKHDOVea.mjs +410 -0
- package/dist/option-CKHDOVea.mjs.map +1 -0
- package/dist/option.types-D6TYG_i3.d.mts +89 -0
- package/dist/option.types-D6TYG_i3.d.mts.map +1 -0
- package/dist/pipe/index.d.mts +2 -0
- package/dist/pipe/index.mjs +3 -0
- package/dist/pipe-GYxZNkPB.mjs +10 -0
- package/dist/pipe-GYxZNkPB.mjs.map +1 -0
- package/dist/predicate/index.d.mts +2 -0
- package/dist/predicate/index.mjs +3 -0
- package/dist/predicate-B6-EdVgW.mjs +293 -0
- package/dist/predicate-B6-EdVgW.mjs.map +1 -0
- package/dist/result/index.d.mts +3 -0
- package/dist/result/index.mjs +3 -0
- package/dist/result-C5tPWR60.mjs +422 -0
- package/dist/result-C5tPWR60.mjs.map +1 -0
- package/dist/result-D7XJ96pv.mjs +1 -0
- package/dist/result.types-Ce7AEOzj.d.mts +156 -0
- package/dist/result.types-Ce7AEOzj.d.mts.map +1 -0
- package/dist/run/index.d.mts +2 -0
- package/dist/run/index.mjs +3 -0
- package/dist/run-DpXkImo9.mjs +10 -0
- package/dist/run-DpXkImo9.mjs.map +1 -0
- package/package.json +89 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { i as Result } from "./result.types-Ce7AEOzj.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/run/run.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Convenience wrapper around Do() that executes the computation immediately
|
|
7
|
+
* and returns the Result directly.
|
|
8
|
+
*
|
|
9
|
+
* Use this when you want inline execution without storing the computation.
|
|
10
|
+
* For deferred execution, use Do() directly.
|
|
11
|
+
*
|
|
12
|
+
* @see {@link Do} for deferred/composable computations
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* // Sync computation
|
|
17
|
+
* const result = run(function* () {
|
|
18
|
+
* const a = yield* divide(10, 2)
|
|
19
|
+
* const b = yield* divide(a, 2)
|
|
20
|
+
* return b
|
|
21
|
+
* }) // Result<number, "DivisionByZero">
|
|
22
|
+
*
|
|
23
|
+
* // Async computation
|
|
24
|
+
* const user = await run(async function* () {
|
|
25
|
+
* const data = yield* await fetchUser(1)
|
|
26
|
+
* return data.name
|
|
27
|
+
* }) // Promise<Result<string, "NotFound">>
|
|
28
|
+
*
|
|
29
|
+
* // Type accumulation
|
|
30
|
+
* const result = run(function* () {
|
|
31
|
+
* const a = yield* divide(10, 2) // "DivisionByZero"
|
|
32
|
+
* const b = yield* findUser(a) // "NotFound"
|
|
33
|
+
* return b.name
|
|
34
|
+
* }) // Result<string, "DivisionByZero" | "NotFound">
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* Execute a sync generator computation immediately.
|
|
39
|
+
*
|
|
40
|
+
* @template A - The success value type
|
|
41
|
+
* @template E - The error type (union of all yielded error types)
|
|
42
|
+
* @param generatorFn - A function returning a sync generator
|
|
43
|
+
* @returns Result<A, E> directly
|
|
44
|
+
*/
|
|
45
|
+
declare function run<A, E>(generatorFn: () => Generator<E, A, unknown>): Result<A, E>;
|
|
46
|
+
/**
|
|
47
|
+
* Execute an async generator computation immediately.
|
|
48
|
+
*
|
|
49
|
+
* @template A - The success value type
|
|
50
|
+
* @template E - The error type (union of all yielded error types)
|
|
51
|
+
* @param generatorFn - A function returning an async generator
|
|
52
|
+
* @returns Promise<Result<A, E>>
|
|
53
|
+
*/
|
|
54
|
+
declare function run<A, E>(generatorFn: () => AsyncGenerator<E, A, unknown>): Promise<Result<A, E>>;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { run as t };
|
|
57
|
+
//# sourceMappingURL=index-wTrnFgYg.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-wTrnFgYg.d.mts","names":[],"sources":["../src/run/run.ts"],"sourcesContent":[],"mappings":";;;;;;AA4CA;;;;;;;;AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAVgB,6BAA6B,UAAU,GAAG,cAAc,OAAW,GAAG;;;;;;;;;iBAUtE,6BAA6B,eAAe,GAAG,cAAc,QAAQ,OAAW,GAAG"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { n as λ, t as ApplyFn } from "./apply-fn.types-CXDoeA7D.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/pipe/pipe.types.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Recursively compute the return type of a pipe chain.
|
|
7
|
+
* Threads the actual types through each function for better generic inference.
|
|
8
|
+
*/
|
|
9
|
+
type PipeReturn<Fns extends λ[], Input> = Fns extends [infer First extends λ, ...infer Rest extends λ[]] ? Rest extends [] ? ApplyFn<First, Input> extends Promise<infer Awaited> ? Promise<Awaited> : ApplyFn<First, Input> : ApplyFn<First, Input> extends Promise<infer Awaited> ? Promise<PipeReturnAsync<Rest, Awaited>> : PipeReturn<Rest, ApplyFn<First, Input>> : Input;
|
|
10
|
+
/**
|
|
11
|
+
* Continue pipe computation after encountering a Promise.
|
|
12
|
+
*/
|
|
13
|
+
type PipeReturnAsync<Fns extends λ[], Input> = Fns extends [infer First extends λ, ...infer Rest extends λ[]] ? Rest extends [] ? ApplyFn<First, Input> extends Promise<infer Awaited> ? Awaited : ApplyFn<First, Input> : ApplyFn<First, Input> extends Promise<infer Awaited> ? PipeReturnAsync<Rest, Awaited> : PipeReturnAsync<Rest, ApplyFn<First, Input>> : Input;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/pipe/pipe.d.ts
|
|
16
|
+
/**
|
|
17
|
+
* Like `flow` but takes an argument as its first parameter and invokes the pipe
|
|
18
|
+
* with it.
|
|
19
|
+
*
|
|
20
|
+
* Note: unlike in `flow`, the first function of the pipe must take exactly one
|
|
21
|
+
* argument.
|
|
22
|
+
*
|
|
23
|
+
* Type inference: This function provides automatic type inference for chains of
|
|
24
|
+
* 1-15 functions. Each function's parameter type is automatically inferred from
|
|
25
|
+
* the previous function's return type. For chains longer than 15 functions,
|
|
26
|
+
* types must be explicitly specified.
|
|
27
|
+
*
|
|
28
|
+
* Async support: Functions can return Promises. The runtime automatically awaits
|
|
29
|
+
* Promises before passing values to subsequent functions, and parameter types
|
|
30
|
+
* use `Awaited<T>` to reflect this behavior. The final return type will be
|
|
31
|
+
* Promise<T> if any function returns a Promise.
|
|
32
|
+
*
|
|
33
|
+
* @see {@link flow} for point-free function composition (returns a function)
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* // Type inference in action
|
|
38
|
+
* pipe(
|
|
39
|
+
* 2,
|
|
40
|
+
* (n) => n * 2, // n: number (inferred from initial value)
|
|
41
|
+
* (n) => n + 1, // n: number (inferred from previous return)
|
|
42
|
+
* (n) => n.toString() // n: number (inferred from previous return)
|
|
43
|
+
* ) // -> "5"
|
|
44
|
+
*
|
|
45
|
+
* // With type transformations
|
|
46
|
+
* pipe(
|
|
47
|
+
* 5,
|
|
48
|
+
* (n) => n.toString(), // number -> string
|
|
49
|
+
* (s) => s.length, // string -> number (inferred!)
|
|
50
|
+
* (n) => n * 2 // number -> number (inferred!)
|
|
51
|
+
* )
|
|
52
|
+
*
|
|
53
|
+
* // With async functions - Promises are automatically unwrapped
|
|
54
|
+
* await pipe(
|
|
55
|
+
* 5,
|
|
56
|
+
* async (n) => n * 2, // number -> Promise<number>
|
|
57
|
+
* (n) => n.toString(), // n: number (Promise unwrapped!)
|
|
58
|
+
* async (s) => s.length // string -> Promise<number>
|
|
59
|
+
* )
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
declare function pipe<A, B>(arg: A, f1: (arg: A) => B): PipeReturn<[typeof f1], A>;
|
|
63
|
+
declare function pipe<A, B, C>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C): PipeReturn<[typeof f1, typeof f2], A>;
|
|
64
|
+
declare function pipe<A, B, C, D>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D): PipeReturn<[typeof f1, typeof f2, typeof f3], A>;
|
|
65
|
+
declare function pipe<A, B, C, D, E>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D, f4: (arg: Awaited<D>) => E): PipeReturn<[typeof f1, typeof f2, typeof f3, typeof f4], A>;
|
|
66
|
+
declare function pipe<A, B, C, D, E, F>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D, f4: (arg: Awaited<D>) => E, f5: (arg: Awaited<E>) => F): PipeReturn<[typeof f1, typeof f2, typeof f3, typeof f4, typeof f5], A>;
|
|
67
|
+
declare function pipe<A, B, C, D, E, F, G>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D, f4: (arg: Awaited<D>) => E, f5: (arg: Awaited<E>) => F, f6: (arg: Awaited<F>) => G): PipeReturn<[typeof f1, typeof f2, typeof f3, typeof f4, typeof f5, typeof f6], A>;
|
|
68
|
+
declare function pipe<A, B, C, D, E, F, G, H>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D, f4: (arg: Awaited<D>) => E, f5: (arg: Awaited<E>) => F, f6: (arg: Awaited<F>) => G, f7: (arg: Awaited<G>) => H): PipeReturn<[typeof f1, typeof f2, typeof f3, typeof f4, typeof f5, typeof f6, typeof f7], A>;
|
|
69
|
+
declare function pipe<A, B, C, D, E, F, G, H, I>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D, f4: (arg: Awaited<D>) => E, f5: (arg: Awaited<E>) => F, f6: (arg: Awaited<F>) => G, f7: (arg: Awaited<G>) => H, f8: (arg: Awaited<H>) => I): PipeReturn<[typeof f1, typeof f2, typeof f3, typeof f4, typeof f5, typeof f6, typeof f7, typeof f8], A>;
|
|
70
|
+
declare function pipe<A, B, C, D, E, F, G, H, I, J>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D, f4: (arg: Awaited<D>) => E, f5: (arg: Awaited<E>) => F, f6: (arg: Awaited<F>) => G, f7: (arg: Awaited<G>) => H, f8: (arg: Awaited<H>) => I, f9: (arg: Awaited<I>) => J): PipeReturn<[typeof f1, typeof f2, typeof f3, typeof f4, typeof f5, typeof f6, typeof f7, typeof f8, typeof f9], A>;
|
|
71
|
+
declare function pipe<A, B, C, D, E, F, G, H, I, J, K>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D, f4: (arg: Awaited<D>) => E, f5: (arg: Awaited<E>) => F, f6: (arg: Awaited<F>) => G, f7: (arg: Awaited<G>) => H, f8: (arg: Awaited<H>) => I, f9: (arg: Awaited<I>) => J, f10: (arg: Awaited<J>) => K): PipeReturn<[typeof f1, typeof f2, typeof f3, typeof f4, typeof f5, typeof f6, typeof f7, typeof f8, typeof f9, typeof f10], A>;
|
|
72
|
+
declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D, f4: (arg: Awaited<D>) => E, f5: (arg: Awaited<E>) => F, f6: (arg: Awaited<F>) => G, f7: (arg: Awaited<G>) => H, f8: (arg: Awaited<H>) => I, f9: (arg: Awaited<I>) => J, f10: (arg: Awaited<J>) => K, f11: (arg: Awaited<K>) => L): PipeReturn<[typeof f1, typeof f2, typeof f3, typeof f4, typeof f5, typeof f6, typeof f7, typeof f8, typeof f9, typeof f10, typeof f11], A>;
|
|
73
|
+
declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D, f4: (arg: Awaited<D>) => E, f5: (arg: Awaited<E>) => F, f6: (arg: Awaited<F>) => G, f7: (arg: Awaited<G>) => H, f8: (arg: Awaited<H>) => I, f9: (arg: Awaited<I>) => J, f10: (arg: Awaited<J>) => K, f11: (arg: Awaited<K>) => L, f12: (arg: Awaited<L>) => M): PipeReturn<[typeof f1, typeof f2, typeof f3, typeof f4, typeof f5, typeof f6, typeof f7, typeof f8, typeof f9, typeof f10, typeof f11, typeof f12], A>;
|
|
74
|
+
declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D, f4: (arg: Awaited<D>) => E, f5: (arg: Awaited<E>) => F, f6: (arg: Awaited<F>) => G, f7: (arg: Awaited<G>) => H, f8: (arg: Awaited<H>) => I, f9: (arg: Awaited<I>) => J, f10: (arg: Awaited<J>) => K, f11: (arg: Awaited<K>) => L, f12: (arg: Awaited<L>) => M, f13: (arg: Awaited<M>) => N): PipeReturn<[typeof f1, typeof f2, typeof f3, typeof f4, typeof f5, typeof f6, typeof f7, typeof f8, typeof f9, typeof f10, typeof f11, typeof f12, typeof f13], A>;
|
|
75
|
+
declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D, f4: (arg: Awaited<D>) => E, f5: (arg: Awaited<E>) => F, f6: (arg: Awaited<F>) => G, f7: (arg: Awaited<G>) => H, f8: (arg: Awaited<H>) => I, f9: (arg: Awaited<I>) => J, f10: (arg: Awaited<J>) => K, f11: (arg: Awaited<K>) => L, f12: (arg: Awaited<L>) => M, f13: (arg: Awaited<M>) => N, f14: (arg: Awaited<N>) => O): PipeReturn<[typeof f1, typeof f2, typeof f3, typeof f4, typeof f5, typeof f6, typeof f7, typeof f8, typeof f9, typeof f10, typeof f11, typeof f12, typeof f13, typeof f14], A>;
|
|
76
|
+
declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(arg: A, f1: (arg: A) => B, f2: (arg: Awaited<B>) => C, f3: (arg: Awaited<C>) => D, f4: (arg: Awaited<D>) => E, f5: (arg: Awaited<E>) => F, f6: (arg: Awaited<F>) => G, f7: (arg: Awaited<G>) => H, f8: (arg: Awaited<H>) => I, f9: (arg: Awaited<I>) => J, f10: (arg: Awaited<J>) => K, f11: (arg: Awaited<K>) => L, f12: (arg: Awaited<L>) => M, f13: (arg: Awaited<M>) => N, f14: (arg: Awaited<N>) => O, f15: (arg: Awaited<O>) => P): PipeReturn<[typeof f1, typeof f2, typeof f3, typeof f4, typeof f5, typeof f6, typeof f7, typeof f8, typeof f9, typeof f10, typeof f11, typeof f12, typeof f13, typeof f14, typeof f15], A>;
|
|
77
|
+
//#endregion
|
|
78
|
+
export { pipe as t };
|
|
79
|
+
//# sourceMappingURL=index-yyBTq8Ys.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-yyBTq8Ys.d.mts","names":[],"sources":["../src/pipe/pipe.types.ts","../src/pipe/pipe.ts"],"sourcesContent":[],"mappings":";;;;;AAYA;;;AAAkF,KAAtE,UAAsE,CAAA,YAA/C,CAA+C,EAAA,EAAA,KAAA,CAAA,GAAjC,GAAiC,SAAA,CAAA,KAAA,eAAA,CAAA,EAAA,GAAA,KAAA,cAAyB,CAAzB,EAAA,CAAA,GAAA,IAAA,SAAA,EAAA,GAE5E,OAF4E,CAEpE,KAFoE,EAE7D,KAF6D,CAAA,SAE9C,OAF8C,CAAA,KAAA,QAAA,CAAA,GAG1E,OAH0E,CAGlE,OAHkE,CAAA,GAI1E,OAJ0E,CAIlE,KAJkE,EAI3D,KAJ2D,CAAA,GAK5E,OAL4E,CAKpE,KALoE,EAK7D,KAL6D,CAAA,SAK9C,OAL8C,CAAA,KAAA,QAAA,CAAA,GAM1E,OAN0E,CAMlE,eANkE,CAMlD,IANkD,EAM5C,OAN4C,CAAA,CAAA,GAO1E,UAP0E,CAO/D,IAP+D,EAOzD,OAPyD,CAOjD,KAPiD,EAO1C,KAP0C,CAAA,CAAA,GAQ9E,KAR8E;;;;KAc7E,eAZC,CAAA,YAY2B,CAZ3B,EAAA,EAAA,KAAA,CAAA,GAYyC,GAZzC,SAAA,CAAA,KAAA,eAY0E,CAZ1E,EAAA,GAAA,KAAA,cAYmG,CAZnG,EAAA,CAAA,GAAA,IAAA,SAAA,EAAA,GAcA,OAdA,CAcQ,KAdR,EAce,KAdf,CAAA,SAc8B,OAd9B,CAAA,KAAA,QAAA,CAAA,G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CAuNN,CAvNM,CAAA,EAAA,GAuNC,CAvND,EAAA,GAAA,EAAA,CAAA,GAAA,EAwNd,OAxNc,CAwNN,CAxNM,CAAA,EAAA,GAwNC,CAxND,CAAA,EAyNxB,UAzNwB,CAAA,CACP,OA0NT,EA1NS,EAAR,OA2ND,EA3NC,EAAe,OA4NhB,EA5NgB,EACP,OA4NT,EA5NS,EAAR,OA6ND,EA7NC,EAAe,OA8NhB,EA9NgB,EACL,OA8NX,EA9NW,EAAW,OA+NtB,EA/NsB,EAAW,OAgOjC,EAhOiC,EAAW,OAiO5C,GAjO4C,EAAW,OAkOvD,GAlOuD,EAAK,OAmO5D,GAnO4D,EAApE,OAoOQ,GApOR,EAAU,OAqOF,GArOE,EAEG,OAoOL,GApOS,CACb,EAqOL,CArOK,CAAA"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { a as ResultFilter, c as ResultMapErr, d as AsyncComputation, g as Yieldable, h as SyncComputation, i as Result$1, l as ResultOrElse, o as ResultFlatMap, p as Computation, r as FromTryReturn, s as ResultMap, u as ResultTap } from "./result.types-Ce7AEOzj.mjs";
|
|
2
|
+
import { a as record, d as Infer, f as InferInput, g as ValidationError, h as RecordObject, i as data, m as RecordDef, o as ADT, p as InferOutput } from "./index-Dtq3kmln.mjs";
|
|
3
|
+
import { a as Branded, i as BrandKey, n as Brand$1, o as Unbrand, r as BrandError, s as Validator, t as Brand } from "./index-CtJ8Ks9X.mjs";
|
|
4
|
+
import { a as ArrayValue, c as TaggedValue, i as tagged, l as TupleValue, n as tuple, o as StructValue, r as struct, s as TaggedConstructor, t as array } from "./index-BCrD3pEs.mjs";
|
|
5
|
+
import { a as Option$1, c as OptionMap, i as None, l as OptionOrElse, o as OptionFilter, r as FromTryReturn$1, s as OptionFlatMap, u as OptionTap } from "./option.types-D6TYG_i3.mjs";
|
|
6
|
+
import { t as gen } from "./index-DPVT0yK4.mjs";
|
|
7
|
+
import { a as EitherFilter, c as EitherMapLeft, d as EitherTapLeft, i as EitherBimap, l as EitherOrElse, n as all, o as EitherFlatMap, r as Either$1, s as EitherMap, t as Either, u as EitherTap } from "./index-CvGTIg9L.mjs";
|
|
8
|
+
import { a as TaggedError$1, i as ErrorTag, n as TaggedError, o as TaggedErrorFactory, r as ErrorData, s as TaggedErrorInstance, t as Err } from "./index-BR7takNf.mjs";
|
|
9
|
+
import { t as flow } from "./index-tkgTLCoq.mjs";
|
|
10
|
+
import { n as all$1, t as Option } from "./index-bLRqTe5I.mjs";
|
|
11
|
+
import { t as pipe } from "./index-yyBTq8Ys.mjs";
|
|
12
|
+
import { n as Predicate$1, r as Refinement, t as Predicate } from "./index-CcPnhWje.mjs";
|
|
13
|
+
import { n as all$2, t as Result } from "./index-DgOAEEpu.mjs";
|
|
14
|
+
import { t as run } from "./index-wTrnFgYg.mjs";
|
|
15
|
+
|
|
16
|
+
//#region src/std.d.ts
|
|
17
|
+
/**
|
|
18
|
+
* Main Std namespace containing all utility functions and types.
|
|
19
|
+
*/
|
|
20
|
+
declare const Std: {
|
|
21
|
+
Option: {
|
|
22
|
+
readonly some: <T>(value: T) => Option$1<T>;
|
|
23
|
+
readonly none: <T>() => Option$1<T>;
|
|
24
|
+
readonly isSome: <T>(option: Option$1<T>) => option is Extract<Option$1<T>, {
|
|
25
|
+
some: true;
|
|
26
|
+
}>;
|
|
27
|
+
readonly isNone: <T>(option: Option$1<T>) => option is Extract<Option$1<T>, {
|
|
28
|
+
some: false;
|
|
29
|
+
}>;
|
|
30
|
+
readonly map: OptionMap;
|
|
31
|
+
readonly flatMap: OptionFlatMap;
|
|
32
|
+
readonly tap: OptionTap;
|
|
33
|
+
readonly orElse: OptionOrElse;
|
|
34
|
+
readonly filter: OptionFilter;
|
|
35
|
+
readonly all: typeof all$1;
|
|
36
|
+
readonly unwrapOr: <T>(defaultValue: T) => (option: Option$1<T>) => T;
|
|
37
|
+
readonly unwrapOrElse: <T>(fn: () => T) => (option: Option$1<T>) => T;
|
|
38
|
+
readonly match: <T, U>(handlers: {
|
|
39
|
+
some: (value: T) => U;
|
|
40
|
+
none: () => U;
|
|
41
|
+
}) => (option: Option$1<T>) => U;
|
|
42
|
+
readonly fromNullable: <T>(value: T | null | undefined) => Option$1<T>;
|
|
43
|
+
readonly fromTry: <T>(fn: () => T) => FromTryReturn$1<T>;
|
|
44
|
+
};
|
|
45
|
+
Either: {
|
|
46
|
+
readonly left: <L>(value: L) => Either$1<L, never>;
|
|
47
|
+
readonly right: <R>(value: R) => Either$1<never, R>;
|
|
48
|
+
readonly isLeft: <L, R>(either: Either$1<L, R>) => either is Extract<Either$1<L, R>, {
|
|
49
|
+
right: false;
|
|
50
|
+
}>;
|
|
51
|
+
readonly isRight: <L, R>(either: Either$1<L, R>) => either is Extract<Either$1<L, R>, {
|
|
52
|
+
right: true;
|
|
53
|
+
}>;
|
|
54
|
+
readonly map: EitherMap;
|
|
55
|
+
readonly mapLeft: EitherMapLeft;
|
|
56
|
+
readonly bimap: EitherBimap;
|
|
57
|
+
readonly flatMap: EitherFlatMap;
|
|
58
|
+
readonly tap: EitherTap;
|
|
59
|
+
readonly tapLeft: EitherTapLeft;
|
|
60
|
+
readonly orElse: EitherOrElse;
|
|
61
|
+
readonly swap: <L, R>() => (either: Either$1<L, R>) => Either$1<R, L>;
|
|
62
|
+
readonly filter: EitherFilter;
|
|
63
|
+
readonly all: typeof all;
|
|
64
|
+
readonly unwrapOr: <R>(defaultValue: R) => <L>(either: Either$1<L, R>) => R;
|
|
65
|
+
readonly unwrapOrElse: <L, R>(fn: (left: L) => R) => (either: Either$1<L, R>) => R;
|
|
66
|
+
readonly match: <L, R, U>(handlers: {
|
|
67
|
+
left: (value: L) => U;
|
|
68
|
+
right: (value: R) => U;
|
|
69
|
+
}) => (either: Either$1<L, R>) => U;
|
|
70
|
+
readonly fromResult: <R, E>(result: Result$1<R, E>) => Either$1<E, R>;
|
|
71
|
+
readonly toResult: <L, R>(either: Either$1<L, R>) => Result$1<R, L>;
|
|
72
|
+
readonly fromOption: <R, L>(option: Option$1<R>, onNone: () => L) => Either$1<L, R>;
|
|
73
|
+
readonly toOption: <L, R>(either: Either$1<L, R>) => Option$1<R>;
|
|
74
|
+
readonly fromNullable: <R, L>(value: R | null | undefined, onNull: () => L) => Either$1<L, R>;
|
|
75
|
+
readonly fromPredicate: <R, L>(value: R, predicate: (value: R) => boolean, onFail: (value: R) => L) => Either$1<L, R>;
|
|
76
|
+
};
|
|
77
|
+
Err: {
|
|
78
|
+
readonly tagged: <E extends TaggedError$1<string>>(tag: E["__typename"]) => (Exclude<keyof E, "__typename"> extends never ? true : false) extends true ? () => E : (data: Exclude<keyof E, "__typename"> extends infer T_1 extends keyof E ? { [P in T_1]: E[P] } : never) => E;
|
|
79
|
+
readonly is: <E extends TaggedError$1<string>>(tag: E["__typename"]) => ((error: unknown) => error is E);
|
|
80
|
+
};
|
|
81
|
+
TaggedError: typeof TaggedError;
|
|
82
|
+
Predicate: {
|
|
83
|
+
readonly not: <T>(predicate: Predicate$1<T>) => Predicate$1<T>;
|
|
84
|
+
readonly and: <T>(...predicates: readonly Predicate$1<T>[]) => Predicate$1<T>;
|
|
85
|
+
readonly or: <T>(...predicates: readonly Predicate$1<T>[]) => Predicate$1<T>;
|
|
86
|
+
readonly every: <T>(predicate: Predicate$1<T>) => Predicate$1<readonly T[]>;
|
|
87
|
+
readonly some: <T>(predicate: Predicate$1<T>) => Predicate$1<readonly T[]>;
|
|
88
|
+
readonly none: <T>(predicate: Predicate$1<T>) => Predicate$1<readonly T[]>;
|
|
89
|
+
readonly andRefinement: <T, U extends T>(...refinements: readonly Refinement<T, U>[]) => Refinement<T, U>;
|
|
90
|
+
readonly orRefinement: <T, U extends T>(...refinements: readonly Refinement<T, U>[]) => Refinement<T, U>;
|
|
91
|
+
readonly constant: <T>(value: boolean) => Predicate$1<T>;
|
|
92
|
+
readonly equals: <T>(expected: T) => Predicate$1<T>;
|
|
93
|
+
};
|
|
94
|
+
Brand: {
|
|
95
|
+
readonly make: <B extends Branded<unknown, string>>(value: Unbrand<B>) => B;
|
|
96
|
+
readonly unsafeMake: <B extends Branded<unknown, string>>(value: Unbrand<B>) => B;
|
|
97
|
+
readonly is: <T, K extends string>(validator: Validator<T>) => ((value: T) => value is Branded<T, K>);
|
|
98
|
+
readonly refine: <B extends Branded<unknown, string>>(validator: Validator<Unbrand<B>>, errorMessage?: string | ((value: Unbrand<B>) => string)) => ((value: Unbrand<B>) => Result$1<B, BrandError<Unbrand<B>>>);
|
|
99
|
+
};
|
|
100
|
+
ok: <T>(value: T) => Result$1<T, never>;
|
|
101
|
+
err: <E>(error: E) => Result$1<never, E>;
|
|
102
|
+
isOk: <T, E>(result: Result$1<T, E>) => result is Extract<Result$1<T, E>, {
|
|
103
|
+
ok: true;
|
|
104
|
+
}>;
|
|
105
|
+
isErr: <T, E>(result: Result$1<T, E>) => result is Extract<Result$1<T, E>, {
|
|
106
|
+
ok: false;
|
|
107
|
+
}>;
|
|
108
|
+
map: ResultMap;
|
|
109
|
+
mapErr: ResultMapErr;
|
|
110
|
+
flatMap: ResultFlatMap;
|
|
111
|
+
tap: ResultTap;
|
|
112
|
+
orElse: ResultOrElse;
|
|
113
|
+
filter: ResultFilter;
|
|
114
|
+
all: typeof all$2;
|
|
115
|
+
unwrapOr: <T>(defaultValue: T) => <E>(result: Result$1<T, E>) => T;
|
|
116
|
+
unwrapOrElse: <E, T>(fn: (error: E) => T) => (result: Result$1<T, E>) => T;
|
|
117
|
+
match: <T, E, U>(handlers: {
|
|
118
|
+
ok: (value: T) => U;
|
|
119
|
+
err: (error: E) => U;
|
|
120
|
+
}) => (result: Result$1<T, E>) => U;
|
|
121
|
+
fromTry: <T>(fn: () => T) => FromTryReturn<T>;
|
|
122
|
+
flow: typeof flow;
|
|
123
|
+
pipe: typeof pipe;
|
|
124
|
+
record: typeof record;
|
|
125
|
+
data: typeof data;
|
|
126
|
+
run: typeof run;
|
|
127
|
+
gen: typeof gen;
|
|
128
|
+
tagged: typeof tagged;
|
|
129
|
+
struct: typeof struct;
|
|
130
|
+
tuple: typeof tuple;
|
|
131
|
+
array: typeof array;
|
|
132
|
+
};
|
|
133
|
+
//#endregion
|
|
134
|
+
export { type ADT, type ArrayValue, type AsyncComputation, Brand, type BrandError, type BrandKey, type Brand$1 as BrandType, type Branded, type Computation, Either, type Either$1 as EitherType, Err, type ErrorData, type ErrorTag, type Infer, type InferInput, type InferOutput, type None, Option, type Option$1 as OptionType, Predicate, type Predicate$1 as PredicateType, type RecordDef, type RecordObject, type Refinement, Result, type Result$1 as ResultType, Std, type StructValue, type SyncComputation, type TaggedConstructor, TaggedError, type TaggedErrorFactory, type TaggedErrorInstance, type TaggedError$1 as TaggedErrorType, type TaggedValue, type TupleValue, type Unbrand, type ValidationError, type Yieldable, array, data, flow, gen, pipe, record, run, struct, tagged, tuple };
|
|
135
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/std.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;cAgBa;;;;;;IAAA,CAAA,CAmBZ;;;;;;;;;;wDAC45R,SAAA,OAAqB;wDAAqZ,SAAA,OAAqB;;;;mBAAgf,SAAA,OAAqB;;;;;;;;MAAp8B,KAAA,EAAA,KAAA;IAAA,CAAA,CAAA;IAAqB,SAAA,OAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,MAAA,UAAA,EAAA,GAAA,CAAA,EAAA,GAAA,MAAA,WAAA,SAAA,EAAA,GAAA,CAAA,EAAA;;IAAqZ,CAAA,CAAA;IAAA,SAAA,GAAA,WAAA;IAAqB,SAAA,OAAA,eAAA;;;;IAAgf,SAAA,OAAA,eAAA;IAAA,SAAA,MAAA,cAAA;IAAqB,SAAA,IAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,GAAA,GAAA,CAAA,MAAA,EAAtJ,QAAsJ,CAAtJ,CAAsJ,EAAtJ,CAA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GAAA,MAAA,WAAA,SAAA,EAAA,GAAA,CAAA,EAAA;IAAA,EAAA,EAAA,KAAA;EAAwB,CAAA,CAAA;;;EAAqgB,OAAA,eAAA;EAAA,GAAA,WAAA;EAAA,MAAA,cAAA;EAAwB,MAAA,cAAA;;gDAAp7G,SAAA,GAAA,OAAwB;wDAAwc,SAAA,GAAA,OAAwB;;IAAs+G,EAAA,EAAA,CAAA,KAAA,GAAA,EAAA,IAAA;IAAA,GAAA,EAAA,CAAA,KAAA,GAAA,EAAA,IAAA;EAAA,CAAA,EAAA,GAAA,CAAA,MAAA,EAAx+F,QAAw+F,CAAx+F,CAAw+F,EAAx+F,CAAw+F,CAAA,EAAA,GAAh9F,CAAg9F;EAAwB,OAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,GAAA,IAAA,EAAA,gBAAA,EAAA,CAAA"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { t as Result } from "./result-C5tPWR60.mjs";
|
|
2
|
+
import { n as data, r as record } from "./adt-DraJkmij.mjs";
|
|
3
|
+
import { t as Brand } from "./brand-CTaxGuU9.mjs";
|
|
4
|
+
import { i as tagged, n as tuple, r as struct, t as array } from "./data-DgzWI4R_.mjs";
|
|
5
|
+
import { t as gen } from "./gen-YfMC9sDT.mjs";
|
|
6
|
+
import { t as Option } from "./option-CKHDOVea.mjs";
|
|
7
|
+
import { t as Either } from "./either-CnOBUH7a.mjs";
|
|
8
|
+
import { n as TaggedError, t as Err } from "./err-BqQApH9r.mjs";
|
|
9
|
+
import { t as flow } from "./flow-pRdnqmMY.mjs";
|
|
10
|
+
import "./flow/index.mjs";
|
|
11
|
+
import { t as pipe } from "./pipe-GYxZNkPB.mjs";
|
|
12
|
+
import { t as Predicate } from "./predicate-B6-EdVgW.mjs";
|
|
13
|
+
import { t as run } from "./run-DpXkImo9.mjs";
|
|
14
|
+
|
|
15
|
+
//#region src/std.ts
|
|
16
|
+
/**
|
|
17
|
+
* Main Std namespace containing all utility functions and types.
|
|
18
|
+
*/
|
|
19
|
+
const Std = {
|
|
20
|
+
flow,
|
|
21
|
+
pipe,
|
|
22
|
+
record,
|
|
23
|
+
data,
|
|
24
|
+
run,
|
|
25
|
+
gen,
|
|
26
|
+
tagged,
|
|
27
|
+
struct,
|
|
28
|
+
tuple,
|
|
29
|
+
array,
|
|
30
|
+
...Result,
|
|
31
|
+
Option,
|
|
32
|
+
Either,
|
|
33
|
+
Err,
|
|
34
|
+
TaggedError,
|
|
35
|
+
Predicate,
|
|
36
|
+
Brand
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { Brand, Either, Err, Option, Predicate, Result, Std, TaggedError, array, data, flow, gen, pipe, record, run, struct, tagged, tuple };
|
|
41
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/std.ts"],"sourcesContent":["import { data, record } from \"./adt\"\nimport { Brand } from \"./brand\"\nimport { array, struct, tagged, tuple } from \"./data\"\nimport { Either } from \"./either\"\nimport { Err, TaggedError } from \"./err\"\nimport { flow } from \"./flow\"\nimport { gen } from \"./gen\"\nimport { Option } from \"./option\"\nimport { pipe } from \"./pipe\"\nimport { Predicate } from \"./predicate\"\nimport { Result } from \"./result\"\nimport { run } from \"./run\"\n\n/**\n * Main Std namespace containing all utility functions and types.\n */\nexport const Std = {\n flow,\n pipe,\n record,\n data,\n run,\n gen,\n tagged,\n struct,\n tuple,\n array,\n // Spreading the result utilities since we want to make it a 1st class citizen\n ...Result,\n Option,\n Either,\n Err,\n TaggedError,\n Predicate,\n Brand,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAgBA,MAAa,MAAM;CACjB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA,GAAG;CACH;CACA;CACA;CACA;CACA;CACA;CACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-promise-BEl3eGZg.mjs","names":[],"sources":["../src/shared/is-promise.ts"],"sourcesContent":["/**\n * Check if a value is a Promise.\n */\nexport function isPromise(value: unknown): value is Promise<unknown> {\n return value instanceof Promise\n}\n"],"mappings":";;;;AAGA,SAAgB,UAAU,OAA2C;AACnE,QAAO,iBAAiB"}
|