Skip to content

FlagParseFn

Custom parse function for flag.custom().

Receives string from CLI argv and env vars, or any JSON-representable value from config files. Narrow inside the function as needed.

Signatures

ts
type FlagParseFn<T> = { (raw: unknown): T; };

See Also

Released under the MIT License.