You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom errors listed in issue lists (ValitaError.issue and ValitaResult.issue) are now always normalized to match the type { code: "custom_error", path: (string | number)[], message?: string | undefined }.
e66a42e Thanks @jviide! - Allow passing a type to .chain()
The .chain() method of types now accepts other types as-is:
v.string()// Accept strings as input,.map((s)=>Number(s))// then parse the strings to numbers,.chain(v.literal(1));// and ensure that the parsed number is 1.
The parsing mode is propagated to the chained type: