UNPKG

graphql-2-json-schema

Version:
13 lines (12 loc) 620 B
import { GraphQLSchema, IntrospectionQuery } from 'graphql'; import { JSONSchema6 } from 'json-schema'; declare type GetTodoSchemaIntrospectionResult = { schema: GraphQLSchema; introspection: IntrospectionQuery; }; export declare const getTodoSchemaIntrospection: () => GetTodoSchemaIntrospectionResult; export declare const todoSchemaAsJsonSchema: JSONSchema6; export declare const todoSchemaAsJsonSchemaWithoutNullableArrayItems: JSONSchema6; export declare const todoSchemaAsJsonSchemaWithIdTypeNumber: JSONSchema6; export declare const todoSchemaAsJsonSchemaWithIdTypeStringOrNumber: JSONSchema6; export {};