Function inferRunCliTypes
- inferRunCliTypes<const E extends object, const S extends object, const Z>(
data: InferRootOptionsArguments<E> & InferSubCommandOptionsArguments<S> & NoInfer<
(
ParseData & (E & S extends { options: {}; } ? { options: SanitizeOptions<({ options: {}; } & E & S)["options"]>; } : {})
) & (
(E & S) extends { subCommands: {} }
? { subCommands: SanitizeSubCommandOptArgs<O["subCommands"]> }
: {}
) & MainDeclarations<E & S, null, null>,
> & Z,
): ZType Parameters
- const E extends object
- const S extends object
- const Z
Parameters
- data: InferRootOptionsArguments<E> & InferSubCommandOptionsArguments<S> & NoInfer<
(
ParseData & (E & S extends { options: {}; } ? { options: SanitizeOptions<({ options: {}; } & E & S)["options"]>; } : {})
) & (
(E & S) extends { subCommands: {} }
? { subCommands: SanitizeSubCommandOptArgs<O["subCommands"]> }
: {}
) & MainDeclarations<E & S, null, null>,
> & Z
Returns Z