pothos-schema-exporter
Version:
Plugin to output 'schema.graphql' from pothos to file
15 lines (14 loc) • 479 B
TypeScript
import { SchemaTypes } from "@pothos/core";
import { PothosSchemaExporterPlugin } from "./index.js";
declare global {
export namespace PothosSchemaTypes {
interface Plugins<Types extends SchemaTypes> {
pothosSchemaExporter: PothosSchemaExporterPlugin<Types>;
}
interface SchemaBuilderOptions<Types extends SchemaTypes> {
pothosSchemaExporter?: {
output?: string | null | false;
};
}
}
}