UNPKG

@graphql-mesh/config

Version:
25 lines (24 loc) 880 B
import type { GetMeshOptions } from '@graphql-mesh/runtime'; import { ImportFn, YamlConfig } from '@graphql-mesh/types'; import { Source } from '@graphql-tools/utils'; import { MeshStore } from '@graphql-mesh/store'; export declare type ConfigProcessOptions = { dir?: string; importFn?: ImportFn; store?: MeshStore; ignoreAdditionalResolvers?: boolean; configName?: string; artifactsDir?: string; additionalPackagePrefixes?: string[]; generateCode?: boolean; initialLoggerPrefix?: string; throwOnInvalidConfig?: boolean; }; export declare type ProcessedConfig = GetMeshOptions & { config: YamlConfig.Config; documents: Source[]; store: MeshStore; importCodes: Set<string>; codes: Set<string>; }; export declare function processConfig(config: YamlConfig.Config, options?: ConfigProcessOptions): Promise<ProcessedConfig>;