nx-mesh
Version:
GraphQL Mesh support for Nx
22 lines (21 loc) • 577 B
TypeScript
import type { StringKeyOf } from 'type-fest';
/**
* Env variables that can be passed to the GraphQL Mesh CLI.
*/
export declare type Env = {
/**
* Enable debug logging.
*/
debug?: boolean;
};
/**
* Env variables in a format accepted by the GraphQL Mesh CLI.
*/
export declare type CliEnv<TEnv extends Env = Env> = {
[E in StringKeyOf<TEnv> as Uppercase<E>]?: E extends 'debug' ? '0' | '1' : string;
};
/**
* Get a list of Env variables that can be passed to the
* GraphQL Mesh CLI.
*/
export declare const getCliEnv: (options: Env) => CliEnv<Env>;