UNPKG

wgc

Version:

The official CLI tool to manage the GraphQL Federation Platform Cosmo

12 lines (11 loc) 432 B
import { ErrorObject } from 'ajv/dist/2020.js'; import { ToolContext } from './types.js'; export interface ValidationResult { isValid: boolean; errors?: ErrorObject[] | { message: string; }[] | null | undefined; config?: string; } export declare function validateRouterConfig(config: string): Promise<ValidationResult>; export declare const registerVerifyRouterConfigTool: ({ server }: ToolContext) => void;