This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
admin-panel/graphql-types/node_modules/graphql-config/types.d.ts

48 lines
1.1 KiB
TypeScript

import { DocumentPointer, SchemaPointer } from '@graphql-tools/utils';
export declare type PointerWithConfiguration<T = any> = {
[key: string]: T;
};
/**
* Configuration of each used extension
*/
export interface IExtensions {
[name: string]: any;
}
/**
* Multiple named projects
*/
export interface IGraphQLProjects {
projects: {
[name: string]: IGraphQLProject | IGraphQLProjectLegacy;
};
}
/**
* Structure of GraphQL Config
*/
export declare type IGraphQLConfig = IGraphQLProject | IGraphQLProjects | IGraphQLProjectLegacy;
/**
* Legacy structure of GraphQL Config v2
*/
export interface IGraphQLProjectLegacy {
schemaPath: string;
includes?: string[];
excludes?: string[];
extensions?: {
[name: string]: any;
};
}
/**
* GraphQL Project
*/
export interface IGraphQLProject {
schema: SchemaPointer;
documents?: DocumentPointer;
extensions?: IExtensions;
include?: string | string[];
exclude?: string | string[];
}
export interface GraphQLConfigResult {
config: IGraphQLConfig;
filepath: string;
}
//# sourceMappingURL=types.d.ts.map