stonev5-utils
Version:
all my utils here
11 lines (10 loc) • 530 B
TypeScript
export declare function pmapNull<A, T>(list: Array<A>, fn: (a: A) => Promise<T>): Promise<{
k: A;
v: Awaited<T>;
}[]>;
export declare function pmap<A, T>(list: Array<A>, fn: (a: A) => Promise<T | null | undefined>): Promise<{
k: A;
v: Awaited<T> | null | undefined;
}[]>;
export declare function pmapNullVO<A, T>(list: Array<A>, fn: (a: A) => Promise<T>): Promise<Awaited<T>[]>;
export declare function pmapVO<A, T>(list: Array<A>, fn: (a: A) => Promise<T | null | undefined>): Promise<NonNullable<Awaited<T>>[]>;