Skip to content

Interface: CombinatorOptions<T> ​

Options for the combinator factory function.

Extends ​

Signature ​

ts
export interface CombinatorOptions<T> extends BaseOptions

Type Parameters ​

NameDescription
TThe parsed value type.

Properties ​

NameTypeDescription
metavar (optional)stringDisplay name hint for help text generation. Default: 'custom'
parse(value: string) => TThe parse function that converts a string to the desired type. It is called synchronously, as ArgSchema.parse is: a promise that it returns becomes the value as is, and its rejection is not reported as an error.

parse Parameters ​

NameTypeDescription
valuestringThe input string value.

parse Returns ​

T — The parsed value of type T.

Released under the MIT License.