Twitter Feed: Post

Twitter Feed

@colinhacks ("Colin McDonnell") replied to a tweet by @colinhacks:

Subtract elements from a ZodEnum with `.exclude()` or extract elements with ` .extract()`.

Huge thanks to `santosmarco-caribou` for his work on this! 🙌 The API is inspired by the TS built-ins of the same names: https://www.typescriptlang.org/docs/handbook/utility-types.html

https://github.com/colinhacks/zod/pull/1652