t-graphql
Version:
typed GraphQL - end-to-end type-safe GraphQL for TypeScript. Think tRPC, but GraphQL
12 lines (11 loc) • 665 B
TypeScript
import { AnyInputFieldType } from '../inputs/InputObjectType';
import { AnyParamType, ParamValue } from '../outputs/ParamObjectType';
import { AnySchemaType } from '../SchemaType';
import { AnyInputValueType } from '../types/AnyInputValueType.type';
import { AnyType } from '../types/AnyType.type';
export declare function generateSchemaString(rootType: AnyType | AnySchemaType): string;
export declare function generateParamValue(value: ParamValue<AnyParamType>): string;
export declare function generateSchemaPart(type: AnyType | AnySchemaType | AnyInputValueType | AnyInputFieldType | AnyParamType): {
hoisted: Record<string, string>;
inline: string;
};