MCPcopy
hub / github.com/colinhacks/zod / extract

Method extract

packages/zod/src/v4/classic/schemas.ts:1857–1857  ·  view source on GitHub ↗
(
    values: U,
    params?: string | core.$ZodEnumParams
  )

Source from the content-addressed store, hash-verified

1855 options: Array<T[keyof T]>;
1856
1857 extract<const U extends readonly (keyof T)[]>(
1858 values: U,
1859 params?: string | core.$ZodEnumParams
1860 ): ZodEnum<util.Flatten<Pick<T, U[number]>>>;

Callers 2

enum.test.tsFile · 0.65
enum.test.tsFile · 0.65

Implementers 1

ZodEnumpackages/zod/src/v3/types.ts

Calls

no outgoing calls

Tested by

no test coverage detected