UNPKG

wgc

Version:

The official CLI tool to manage the GraphQL Federation Platform Cosmo

14 lines (13 loc) 528 B
import { Client as ConnectClient } from '@connectrpc/connect'; import { PlatformService } from '@wundergraph/cosmo-connect/dist/platform/v1/platform_pb'; import { NodeService } from '@wundergraph/cosmo-connect/dist/node/v1/node_pb'; export interface ClientOptions { baseUrl: string; apiKey?: string; proxyUrl?: string; } export interface Client { platform: ConnectClient<typeof PlatformService>; node?: ConnectClient<typeof NodeService>; } export declare const CreateClient: (opts: ClientOptions) => Client;