UNPKG

396 BTypeScriptView Raw
1import { GraphQLSchema } from 'graphql';
2import { EnumFormat } from '../../types';
3export interface ScalarDefinition {
4 name: string;
5 package: string;
6}
7export interface Options {
8 enumFormat?: EnumFormat;
9 customScalars?: {
10 [key: string]: ScalarDefinition;
11 };
12}
13export declare function generateSchemaTypes(schema: GraphQLSchema, options?: Options): Map<string, string>;