1 | import type { DirectiveNode } from 'graphql/language/ast';
|
2 | import type { GraphQLSchema } from 'graphql/type/schema';
|
3 | import { GraphQLDirective } from 'graphql/type/directives';
|
4 | import { GraphQLArgument, GraphQLNamedType, GraphQLScalarType, GraphQLEnumType, GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType, GraphQLInputObjectType, GraphQLInputField } from 'graphql/type/definition';
|
5 | import { SchemaComposer } from '../SchemaComposer';
|
6 | import { SchemaFilterTypes } from './getFromSchema';
|
7 | import { CompareTypeComposersOption } from './schemaPrinterSortTypes';
|
8 | declare type Options = {
|
9 | commentDescriptions?: boolean | null;
|
10 | omitDescriptions?: boolean | null;
|
11 | omitScalars?: boolean | null;
|
12 | omitSpecifiedByUrl?: boolean | null;
|
13 | sortAll?: boolean;
|
14 | sortFields?: boolean;
|
15 | sortArgs?: boolean;
|
16 | sortInterfaces?: boolean;
|
17 | sortUnions?: boolean;
|
18 | sortEnums?: boolean;
|
19 | sortTypes?: CompareTypeComposersOption;
|
20 | };
|
21 | export declare type SchemaPrinterOptions = Options;
|
22 | export declare type SchemaComposerPrinterOptions = Options & SchemaFilterTypes;
|
23 | export declare function printSchemaComposer(sc: SchemaComposer<any>, options?: SchemaComposerPrinterOptions): string;
|
24 | export declare function printSchema(schema: GraphQLSchema, options?: Options): string;
|
25 | export declare function printIntrospectionSchema(schema: GraphQLSchema, options?: Options): string;
|
26 | export declare function isDefinedType(type: GraphQLNamedType): boolean;
|
27 | export declare function printFilteredSchema(schema: GraphQLSchema, directiveFilter: (type: GraphQLDirective) => boolean, typeFilter: (type: GraphQLNamedType) => boolean, options?: Options): string;
|
28 | export declare function printSchemaDefinition(schema: GraphQLSchema): string;
|
29 | export declare function isSchemaOfCommonNames(schema: GraphQLSchema): boolean;
|
30 | export declare function printType(type: GraphQLNamedType, options?: Options): string;
|
31 | export declare function printScalar(type: GraphQLScalarType, options?: Options): string;
|
32 | export declare function printImplementedInterfaces(type: GraphQLObjectType | GraphQLInterfaceType, options?: Options): string;
|
33 | export declare function printObject(type: GraphQLObjectType, options?: Options): string;
|
34 | export declare function printInterface(type: GraphQLInterfaceType, options?: Options): string;
|
35 | export declare function printUnion(type: GraphQLUnionType, options?: Options): string;
|
36 | export declare function printEnum(type: GraphQLEnumType, options?: Options): string;
|
37 | export declare function printInputObject(type: GraphQLInputObjectType, options?: Options): string;
|
38 | export declare function printFields(type: GraphQLObjectType | GraphQLInterfaceType, options?: Options): string;
|
39 | export declare function printBlock(items: Array<string>): string;
|
40 | export declare function printArgs(_args: ReadonlyArray<GraphQLArgument>, options?: Options, indentation?: string): string;
|
41 | export declare function printInputValue(arg: GraphQLArgument | GraphQLInputField): string;
|
42 | export declare function printDirective(directive: GraphQLDirective, options?: Options): string;
|
43 | export declare function printNodeDirectives(node: {
|
44 | directives?: ReadonlyArray<DirectiveNode>;
|
45 | } | undefined | null): string;
|
46 | export declare function printDescription(def: any, options?: Options, indentation?: string, firstInBlock?: boolean): string;
|
47 | export declare function printDescriptionWithComments(description: string, indentation: string, firstInBlock: boolean): string;
|
48 | export {};
|
49 |
|
\ | No newline at end of file |