UNPKG

705 BTypeScriptView Raw
1import { PluginFunction, PluginValidateFn } from '@graphql-codegen/plugin-helpers';
2/**
3 * @description This plugin generates a GraphQL introspection file based on your GraphQL schema.
4 */
5export interface IntrospectionPluginConfig {
6 /**
7 * @description Set to `true` in order to minify the JSON output.
8 * @default false
9 *
10 * @exampleMarkdown
11 * ```yml
12 * generates:
13 * introspection.json:
14 * plugins:
15 * - introspection
16 * config:
17 * minify: true
18 * ```
19 */
20 minify?: boolean;
21 federation?: boolean;
22}
23export declare const plugin: PluginFunction<IntrospectionPluginConfig>;
24export declare const validate: PluginValidateFn<any>;