Function: parseOpts()
parseOpts<
T>(schema,flags?,environment?):Partial<z.output<z.ZodObject<T>>>
Parse only supplied flag and environment values through an owning Zod object schema.
Type Parameters
Section titled “Type Parameters”T extends Readonly<{[k: string]: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>; }>
Parameters
Section titled “Parameters”schema
Section titled “schema”ZodObject<T>
flags?
Section titled “flags?”OptionValueMap = null
environment?
Section titled “environment?”OptionValueMap = null
Returns
Section titled “Returns”Partial<z.output<z.ZodObject<T>>>