UNPKG

get-graphql-from-jsonschema

Version:

get-graphql-from-jsonschema gets a GraphQL schema from a JSON schema.

12 lines (11 loc) 362 B
import { Direction } from './Types/Direction'; import { TranslatableUnionJsonSchema } from './Types/TranslatableUnionJsonSchema'; declare const parseUnion: ({ path, schema, direction }: { path: string[]; schema: TranslatableUnionJsonSchema; direction: Direction; }) => { typeName: string; typeDefinitions: string[]; }; export { parseUnion };