UNPKG

@tgrospic/rnode-grpc-js

Version:
16 lines (15 loc) 972 B
/// <reference types="ts-toolbelt" /> import { ChildProcess } from 'node:child_process'; export declare const protoTsTypesMapping: { proto: string; ts: string; }[]; export declare const flattenSchema: (parentPath: any) => (schema: any) => any; declare type MapBindPromise<a, b> = (a: a) => b | ((a: a) => Promise<b>); export declare const then: import("Function/Curry").Curry<(f: MapBindPromise<any, any>, p: Promise<any>) => Promise<any>>; export declare const thenAll: typeof Promise.all; export declare const mapAsync: import("Function/Curry").Curry<(f: MapBindPromise<any, any>, xs: any) => Promise<any[]>>; export declare const chainAsync: import("Function/Curry").Curry<(f: MapBindPromise<any, any>, xs: any) => Promise<any[]>>; export declare const filterAsync: import("Function/Curry").Curry<(pred: any, xs: any) => Promise<(a: never) => never>>; export declare const waitExit: (proc: ChildProcess, result: any, error: any) => Promise<unknown>; export {};