mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
21 lines
1.2 KiB
TypeScript
21 lines
1.2 KiB
TypeScript
import { GraphQLSchema, IntrospectionQuery } from 'graphql';
|
|
import { GraphQLConfigData, IntrospectionResult } from './types';
|
|
export declare function readConfig(configPath: string): GraphQLConfigData;
|
|
export declare function writeConfig(configPath: string, config: GraphQLConfigData): void;
|
|
export declare function normalizeGlob(glob: string): string;
|
|
export declare function matchesGlobs(filePath: string, configDir: string, globs?: string[]): boolean;
|
|
export declare function validateConfig(config: GraphQLConfigData): void;
|
|
export declare function mergeConfigs(dest: GraphQLConfigData, src: GraphQLConfigData): GraphQLConfigData;
|
|
export declare function schemaToIntrospection(schema: GraphQLSchema): Promise<IntrospectionResult>;
|
|
export declare function introspectionToSchema(introspection: IntrospectionResult | (IntrospectionQuery & {
|
|
errors: undefined;
|
|
data: undefined;
|
|
})): GraphQLSchema;
|
|
export declare function readSchema(path: any): GraphQLSchema;
|
|
export declare function writeSchema(path: string, schema: GraphQLSchema, schemaExtensions?: {
|
|
[name: string]: string;
|
|
}): Promise<void>;
|
|
export declare function getSchemaExtensions(path: string): {
|
|
[name: string]: string;
|
|
};
|