1 | import { ParseOptions, DocumentNode, ASTNode, StringValueNode } from 'graphql';
|
2 | export interface ExtendedParseOptions extends ParseOptions {
|
3 | |
4 |
|
5 |
|
6 |
|
7 |
|
8 | commentDescriptions?: boolean;
|
9 | }
|
10 | export declare function parseGraphQLSDL(location: string, rawSDL: string, options?: ExtendedParseOptions): {
|
11 | location: string;
|
12 | document: DocumentNode;
|
13 | rawSDL: string;
|
14 | };
|
15 | export declare function getLeadingCommentBlock(node: ASTNode): void | string;
|
16 | export declare function transformCommentsToDescriptions(sourceSdl: string, options?: ExtendedParseOptions): DocumentNode | null;
|
17 | declare type DiscriminateUnion<T, U> = T extends U ? T : never;
|
18 | declare type DescribableASTNodes = DiscriminateUnion<ASTNode, {
|
19 | description?: StringValueNode;
|
20 | }>;
|
21 | export declare function isDescribable(node: ASTNode): node is DescribableASTNodes;
|
22 | export {};
|