@graphql-tools/code-file-loader
Version:
A set of utils for faster development of GraphQL tools
16 lines (15 loc) • 408 B
TypeScript
import { DocumentNode, GraphQLSchema } from 'graphql';
/**
* @internal
*/
export declare function pickExportFromModule({ module, filepath }: {
module: any;
filepath: string;
}): Promise<GraphQLSchema | DocumentNode | null>;
/**
* @internal
*/
export declare function pickExportFromModuleSync({ module, filepath }: {
module: any;
filepath: string;
}): GraphQLSchema | DocumentNode | null;