1 | import type { GraphQLType, GraphQLNamedType, GraphQLOutputType, GraphQLInputType } from '../graphql';
|
2 | import { ObjectTypeComposer } from '../ObjectTypeComposer';
|
3 | import { InputTypeComposer } from '../InputTypeComposer';
|
4 | import { ScalarTypeComposer } from '../ScalarTypeComposer';
|
5 | import { EnumTypeComposer } from '../EnumTypeComposer';
|
6 | import { InterfaceTypeComposer } from '../InterfaceTypeComposer';
|
7 | import { UnionTypeComposer } from '../UnionTypeComposer';
|
8 | import { NonNullComposer } from '../NonNullComposer';
|
9 | import { ListComposer } from '../ListComposer';
|
10 | import { ThunkComposer } from '../ThunkComposer';
|
11 | import type { TypeAsString } from '../TypeMapper';
|
12 | import type { SchemaComposer } from '../SchemaComposer';
|
13 | export declare type AnyTypeComposer<TContext> = NamedTypeComposer<TContext> | ListComposer<any> | NonNullComposer<any> | ThunkComposer<any, any>;
|
14 | export declare type NamedTypeComposer<TContext> = ObjectTypeComposer<any, TContext> | InputTypeComposer<TContext> | EnumTypeComposer<TContext> | InterfaceTypeComposer<any, TContext> | UnionTypeComposer<any, TContext> | ScalarTypeComposer<TContext>;
|
15 | export declare type ComposeNamedOutputType<TContext> = ObjectTypeComposer<any, TContext> | EnumTypeComposer<TContext> | ScalarTypeComposer<TContext> | InterfaceTypeComposer<any, TContext> | UnionTypeComposer<any, TContext>;
|
16 | export declare type ComposeOutputType<TContext> = ComposeNamedOutputType<TContext> | NonNullComposer<any> | ListComposer<any> | ThunkComposer<any, GraphQLOutputType>;
|
17 | export declare type ComposeOutputTypeDefinition<TContext> = Readonly<ComposeOutputType<TContext>> | Readonly<GraphQLOutputType> | TypeAsString | ReadonlyArray<Readonly<ComposeOutputType<TContext>> | Readonly<GraphQLOutputType> | TypeAsString | ReadonlyArray<Readonly<ComposeOutputType<TContext>> | Readonly<GraphQLOutputType> | TypeAsString>>;
|
18 | export declare type ComposeNamedInputType<TContext> = InputTypeComposer<TContext> | EnumTypeComposer<TContext> | ScalarTypeComposer<TContext>;
|
19 | export declare type ComposeInputType = ComposeNamedInputType<any> | ThunkComposer<ComposeNamedInputType<any>, GraphQLInputType> | NonNullComposer<ComposeNamedInputType<any> | ThunkComposer<ComposeNamedInputType<any>, GraphQLInputType> | ListComposer<any>> | ListComposer<ComposeNamedInputType<any> | ThunkComposer<ComposeNamedInputType<any>, GraphQLInputType> | ListComposer<any> | NonNullComposer<any>>;
|
20 | export declare type ComposeInputTypeDefinition = TypeAsString | Readonly<ComposeInputType> | Readonly<GraphQLInputType> | ReadonlyArray<TypeAsString | Readonly<ComposeInputType> | Readonly<GraphQLInputType> | ReadonlyArray<TypeAsString | Readonly<ComposeInputType> | Readonly<GraphQLInputType>>>;
|
21 | export declare function isTypeNameString(str: string): boolean;
|
22 | export declare function isWrappedTypeNameString(str: string): boolean;
|
23 | export declare function isTypeDefinitionString(str: string): boolean;
|
24 | export declare function isSomeOutputTypeDefinitionString(str: string): boolean;
|
25 | export declare function isSomeInputTypeDefinitionString(str: string): boolean;
|
26 | export declare function isOutputTypeDefinitionString(str: string): boolean;
|
27 | export declare function isInputTypeDefinitionString(str: string): boolean;
|
28 | export declare function isEnumTypeDefinitionString(str: string): boolean;
|
29 | export declare function isScalarTypeDefinitionString(str: string): boolean;
|
30 | export declare function isInterfaceTypeDefinitionString(str: string): boolean;
|
31 | export declare function isUnionTypeDefinitionString(str: string): boolean;
|
32 | export declare function isSomeOutputTypeComposer(type: any): type is ComposeOutputType<any>;
|
33 | export declare function isSomeInputTypeComposer(type: any): type is ComposeInputType;
|
34 | export declare function isComposeNamedType(type: any): type is NamedTypeComposer<any> | GraphQLNamedType;
|
35 | export declare function isComposeType(type: any): type is AnyTypeComposer<any>;
|
36 | export declare function isComposeOutputType(type: any): type is ComposeOutputTypeDefinition<any>;
|
37 | export declare function isComposeInputType(type: any): type is ComposeInputTypeDefinition;
|
38 | export declare type AnyType<TContext> = NamedTypeComposer<TContext> | GraphQLNamedType;
|
39 | export declare function isNamedTypeComposer(type: any): type is NamedTypeComposer<any>;
|
40 | export declare function isTypeComposer(type: any): type is AnyTypeComposer<any>;
|
41 | export declare function getGraphQLType(anyType: any): GraphQLType;
|
42 | export declare function getComposeTypeName(type: any, sc: SchemaComposer<any>): string;
|
43 | export declare function unwrapTC<TContext>(anyTC: AnyTypeComposer<TContext>): NamedTypeComposer<TContext>;
|
44 | export declare function unwrapInputTC(inputTC: ComposeInputType): ComposeNamedInputType<any>;
|
45 | export declare function unwrapOutputTC<TContext>(outputTC: ComposeOutputType<TContext>): ComposeNamedOutputType<TContext>;
|
46 | export declare function changeUnwrappedTC<TContext, T>(anyTC: T, cb: (tc: NamedTypeComposer<TContext>) => NamedTypeComposer<TContext>): T;
|
47 | export declare function replaceTC<T>(anyTC: T, replaceByTC: Readonly<NamedTypeComposer<any>> | ((unwrappedTC: NamedTypeComposer<any>) => NamedTypeComposer<any>)): T;
|
48 | export declare function unwrapTypeNameString(str: string): string;
|
49 | export declare function cloneTypeTo(type: AnyTypeComposer<any> | TypeAsString | GraphQLType, anotherSchemaComposer: SchemaComposer<any>, cloneMap?: Map<any, any>): AnyTypeComposer<any> | TypeAsString;
|
50 |
|
\ | No newline at end of file |