UNPKG

833 BTypeScriptView Raw
1import { GraphQLSchema } from "graphql";
2import { GraphQLSchemaProvider, SchemaChangeUnsubscribeHandler } from "./base";
3import { NotificationHandler } from "vscode-languageserver";
4export interface FileSchemaProviderConfig {
5 path?: string;
6 paths?: string[];
7}
8export declare class FileSchemaProvider implements GraphQLSchemaProvider {
9 private config;
10 private schema?;
11 private federatedServiceSDL?;
12 constructor(config: FileSchemaProviderConfig);
13 resolveSchema(): Promise<GraphQLSchema>;
14 loadFileAndGetDocument(path: string): import("graphql").DocumentNode;
15 onSchemaChange(_handler: NotificationHandler<GraphQLSchema>): SchemaChangeUnsubscribeHandler;
16 resolveFederatedServiceSDL(): Promise<string | void>;
17 loadFileAndGetSDL(path: string): string | void;
18}
19//# sourceMappingURL=file.d.ts.map
\No newline at end of file