A Standard Schema validator for an enum, for any library that accepts one (TanStack Form, tRPC, react-hook-form's standard schema resolver, Hono, ...). Strict, unlike codec(): anything that is not one of the enum's values is an issue.
codec()
A Standard Schema validator for an enum, for any library that accepts one (TanStack Form, tRPC, react-hook-form's standard schema resolver, Hono, ...). Strict, unlike
codec(): anything that is not one of the enum's values is an issue.