@envelop/fragment-arguments
Version:
This plugins replaces the default GraphQL `parser` with an extended version that supports setting arguments on fragments.
11 lines (10 loc) • 527 B
text/typescript
import { FragmentDefinitionNode, FragmentSpreadNode, InlineFragmentNode, Location, Token } from 'graphql';
import type { Lexer } from 'graphql/language/lexer.cjs';
import { ParseOptions, Parser } from 'graphql/language/parser.cjs';
export declare class FragmentArgumentCompatibleParser extends Parser {
getLexer(): Lexer;
getOptions(): ParseOptions;
loc(startToken: Token): Location | undefined;
parseFragment(): FragmentSpreadNode | InlineFragmentNode;
parseFragmentDefinition(): FragmentDefinitionNode;
}