1 | import type { Fn, Fn0, Fn10, Fn2, Fn3, Fn4, Fn5, Fn6, Fn7, Fn8, Fn9, FnAny } from "./fn.js";
|
2 | export type MaybePromise<T> = T | Promise<T>;
|
3 | export type MaybeAsyncIterable<T> = Iterable<T> | AsyncIterable<T>;
|
4 | export type MaybeAsyncGenerator<T> = IterableIterator<T> | AsyncIterableIterator<T>;
|
5 | export type AsyncPredicate<T> = FnA<T, boolean>;
|
6 | export type AsyncPredicate2<T> = FnA2<T, T, boolean>;
|
7 | export type AsyncStatefulPredicate<T> = Fn0<AsyncPredicate<T>>;
|
8 | export type AsyncStatefulPredicate2<T> = Fn0<AsyncPredicate2<T>>;
|
9 | export type Fn0A<A> = Fn0<Promise<A>>;
|
10 | export type FnA<A, B> = Fn<A, Promise<B>>;
|
11 | export type FnA2<A, B, C> = Fn2<A, B, Promise<C>>;
|
12 | export type FnA3<A, B, C, D> = Fn3<A, B, C, Promise<D>>;
|
13 | export type FnA4<A, B, C, D, E> = Fn4<A, B, C, D, Promise<E>>;
|
14 | export type FnA5<A, B, C, D, E, F> = Fn5<A, B, C, D, E, Promise<F>>;
|
15 | export type FnA6<A, B, C, D, E, F, G> = Fn6<A, B, C, D, E, F, Promise<G>>;
|
16 | export type FnA7<A, B, C, D, E, F, G, H> = Fn7<A, B, C, D, E, F, G, Promise<H>>;
|
17 | export type FnA8<A, B, C, D, E, F, G, H, I> = Fn8<A, B, C, D, E, F, G, H, Promise<I>>;
|
18 | export type FnA9<A, B, C, D, E, F, G, H, I, J> = Fn9<A, B, C, D, E, F, G, H, I, Promise<J>>;
|
19 | export type FnA10<A, B, C, D, E, F, G, H, I, J, K> = Fn10<A, B, C, D, E, F, G, H, I, J, Promise<K>>;
|
20 | export type FnAnyA<T> = FnAny<Promise<T>>;
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export declare const asyncIdentity: <T>(x: T) => Promise<T>;
|
27 |
|
\ | No newline at end of file |