Skip to content

Type Alias: CommandRunnerResult<G> ​

What the runner of a command returns: its result for a command that spreads jsonArgs, otherwise a string or nothing.

Signature ​

ts
export type CommandRunnerResult<G extends GunshiParamsConstraint = DefaultGunshiParams> = IsAnyArgs<ExtractArgs<G>> extends true ? Awaitable<string | void | JsonResult> : HasJsonArgs<ExtractArgs<G>> extends true ? Awaitable<JsonResult> : Awaitable<string | void>

Type Parameters ​

NameDescription
G extends GunshiParamsConstraint = DefaultGunshiParamsA type extending GunshiParams

Released under the MIT License.