UNPKG

@whisklabs/grpc

Version:

gRPC generator and http library for typescript

17 lines (16 loc) 898 B
import { MakeOuts } from './generator'; export declare const safeString: (str: string) => string; export declare const camelCase: (str: string) => string; export declare const errorColor: (title: string, body?: string | number, comment?: string) => string; export declare function checkDublicate(name: string, out: MakeOuts, comment: string): void; export declare const checkSame: (out: MakeOuts, type: string, collection?: Record<string | number, boolean>) => (key: string | number, comment: string) => void; export interface Walk<T> { filename: string; result: T; } export interface WalkInit<T> extends Walk<T> { each: (params: Walk<T>) => Promise<void> | void; } export declare function walk<T>({ filename, each, result }: WalkInit<T>): Promise<T>; export declare const toComment: (str: string) => string; export declare const joinPath: (...paths: (string | undefined)[]) => string;