UNPKG

graphile-config

Version:

Standard plugin interface and helpers to be used across the Graphile stack.

8 lines 549 B
import type { ArgumentsCamelCase, Argv } from "yargs"; export type { Argv }; export type OptionsFunction<TArgs> = (yargs: Argv) => Argv<TArgs>; export type ArgsFromOptions<TOptionsFunction extends OptionsFunction<any>> = TOptionsFunction extends OptionsFunction<infer U> ? Args<U> : never; export type Args<TArgs> = ArgumentsCamelCase<TArgs>; export declare function runCli<TArgs>(options: OptionsFunction<TArgs>, run: (args: Args<TArgs>) => Promise<void>): void; export declare function getTerminalWidth(): number; //# sourceMappingURL=cli.d.ts.map