UNPKG

@whisklabs/grpc

Version:

gRPC generator and http library for typescript

15 lines (14 loc) 816 B
import { CompilerOptions } from 'typescript'; import { Parser } from '../parser'; import { Config, MakeOuts } from './generator'; export declare function generator({ dir, out, exclude, version, debug, messageRequired, packageName, packageVersion, packageUrl, packageRegistry, }: Config): Promise<boolean>; export declare const transpile: (source: string, options?: CompilerOptions) => string; export declare function checkTypes(file: string, errors: string[]): void; export declare function make(schemas: Parser.Schema[], messageRequired?: boolean): MakeOuts; export interface Package { packageName: string; packageVersion: string; packageUrl: string; packageRegistry: string; } export declare const packageTemplate: ({ packageName, packageVersion, packageUrl, packageRegistry }: Package) => string;