UNPKG

@creditkarma/thrift-parser

Version:

A parser for Thrift written in TypeScript

15 lines (14 loc) 567 B
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>; } export declare const defaultOptions: ParseOptions; export declare function parseFiles(options?: ParseOptions): Array<ThriftDocument | ThriftErrors>; export declare function parse(source: string, options?: ParseOptions): ThriftDocument | ThriftErrors;