1 | import { type GraphQLSchema } from "graphql";
|
2 | import { type SchemaGeneratorOptions } from "../schema/schema-generator.js";
|
3 | import { type NonEmptyArray } from "../typings/index.js";
|
4 | import { type PrintSchemaOptions } from "./emitSchemaDefinitionFile.js";
|
5 | type EmitSchemaFileOptions = {
|
6 | path?: string;
|
7 | } & Partial<PrintSchemaOptions>;
|
8 | export type BuildSchemaOptions = {
|
9 |
|
10 | resolvers: NonEmptyArray<Function>;
|
11 | |
12 |
|
13 |
|
14 |
|
15 |
|
16 | emitSchemaFile?: string | boolean | EmitSchemaFileOptions;
|
17 | } & Omit<SchemaGeneratorOptions, "resolvers">;
|
18 | export declare function buildSchema(options: BuildSchemaOptions): Promise<GraphQLSchema>;
|
19 | export declare function buildSchemaSync(options: BuildSchemaOptions): GraphQLSchema;
|
20 | export {};
|