Skip to content

Type Alias: HasJsonArgs<A> ​

Whether the arguments have the json of jsonArgs.

Signature ​

ts
export type HasJsonArgs<A> = [A] extends [{ readonly json: { readonly [JSON_ARG]: true } }] ? true : false

Type Parameters ​

NameDescription
AThe arguments of a command

Released under the MIT License.