wgc
Version:
The official CLI tool to manage the GraphQL Federation Platform Cosmo
14 lines (13 loc) • 528 B
TypeScript
import { PromiseClient } from '@connectrpc/connect';
import { PlatformService } from '@wundergraph/cosmo-connect/dist/platform/v1/platform_connect';
import { NodeService } from '@wundergraph/cosmo-connect/dist/node/v1/node_connect';
export interface ClientOptions {
baseUrl: string;
apiKey?: string;
proxyUrl?: string;
}
export interface Client {
platform: PromiseClient<typeof PlatformService>;
node?: PromiseClient<typeof NodeService>;
}
export declare const CreateClient: (opts: ClientOptions) => Client;