type-graphql
Version:
Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
8 lines (7 loc) • 460 B
TypeScript
import { type GraphQLSchema } from "graphql";
export interface PrintSchemaOptions {
sortedSchema: boolean;
}
export declare const defaultPrintSchemaOptions: PrintSchemaOptions;
export declare function emitSchemaDefinitionFileSync(schemaFilePath: string, schema: GraphQLSchema, options?: PrintSchemaOptions): void;
export declare function emitSchemaDefinitionFile(schemaFilePath: string, schema: GraphQLSchema, options?: PrintSchemaOptions): Promise<void>;