UNPKG

graphql-language-service-parser

Version:

An online parser for GraphQL for use in syntax-highlighters and code intelligence tools

16 lines 602 B
import { LexRules as LexRulesType, ParseRules as ParseRulesType } from './Rules'; import CharacterStream from './CharacterStream'; import { State } from './types'; export declare type ParserOptions = { eatWhitespace: (stream: CharacterStream) => boolean; lexRules: Partial<typeof LexRulesType>; parseRules: typeof ParseRulesType; editorConfig: { [name: string]: any; }; }; export default function onlineParser(options?: ParserOptions): { startState: () => State; token: (stream: CharacterStream, state: State) => string; }; //# sourceMappingURL=onlineParser.d.ts.map