zod-args-parser 2.0.0-beta.0 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -49,7 +49,7 @@ export type InferArgumentsInputType<T extends Cli | Subcommand> = T["arguments"]
|
|
|
49
49
|
* const myCommand = defineSubcommand({ name: "my-command", options: [...] });
|
|
50
50
|
* type MyCommandOptionsInput = inferOptionsInputType<typeof myCommand>;
|
|
51
51
|
*/
|
|
52
|
-
export type
|
|
52
|
+
export type InferOptionsInputType<T extends Cli | Subcommand> = T["options"] extends Record<string, Option> ? OptionsInputType<T["options"]> : undefined;
|
|
53
53
|
/**
|
|
54
54
|
* - Infer options, arguments, and positionals input types from the CLI/subcommand definition.
|
|
55
55
|
*
|
package/package.json
CHANGED
package/src/types/io-types.ts
CHANGED
|
@@ -60,7 +60,7 @@ export type InferArgumentsInputType<T extends Cli | Subcommand> =
|
|
|
60
60
|
* const myCommand = defineSubcommand({ name: "my-command", options: [...] });
|
|
61
61
|
* type MyCommandOptionsInput = inferOptionsInputType<typeof myCommand>;
|
|
62
62
|
*/
|
|
63
|
-
export type
|
|
63
|
+
export type InferOptionsInputType<T extends Cli | Subcommand> =
|
|
64
64
|
T["options"] extends Record<string, Option> ? OptionsInputType<T["options"]> : undefined;
|
|
65
65
|
|
|
66
66
|
/**
|