@creditkarma/thrift-parser
Version:
A parser for Thrift written in TypeScript
16 lines (15 loc) • 608 B
TypeScript
import { ThriftDocument, ThriftErrors } from './types';
export * from './types';
export * from './factory';
export { createScanner } from './scanner';
export { createParser } from './parser';
export interface ParseOptions {
fastFail: boolean;
rootDir: string;
outDir: string;
files: Array<string>;
organize: boolean;
}
export declare const defaultOptions: ParseOptions;
export declare function parseFiles(options?: Partial<ParseOptions>): Array<ThriftDocument | ThriftErrors>;
export declare function parse(source: string, options?: Partial<ParseOptions>): ThriftDocument | ThriftErrors;