UNPKG

@graphql-mesh/serve-cli

Version:
29 lines (28 loc) 936 B
import 'json-bigint-patch'; import 'dotenv/config'; import { Command } from '@commander-js/extra-typings'; import type { Logger } from '@graphql-mesh/types'; declare let program: Command<[], { fork?: number | true; configPath?: string; host?: string; port?: number; supergraph?: string; polling?: number; maskedErrors?: true; subgraph?: string; }>; export interface RunOptions extends ReturnType<typeof program.opts> { /** @default new DefaultLogger() */ log?: Logger; /** @default Mesh Serve */ productName?: string; /** @default serve GraphQL federated architecture for any API service(s) */ productDescription?: string; /** @default mesh-serve */ binName?: string; /** @default globalThis.__VERSION__ */ version?: string; } export declare function run({ log: rootLog, productName, productDescription, binName, version, }: RunOptions): Promise<void>; export {};