method z.ZodEnum.prototype.extractimport { z } from "https://dotland.deno.dev/x/zod@v3.23.0-beta.0/index.ts"; const { ZodEnum } = z; extract<ToExtract extends readonly [T[number], ...T[number][]]>(values: ToExtract, newDef?: RawCreateParams): ZodEnum<Writeable<ToExtract>>Type ParametersToExtract extends readonly [T[number], ...T[number][]]Parametersvalues: ToExtractoptionalnewDef: RawCreateParams = [UNSUPPORTED]ReturnsZodEnum<Writeable<ToExtract>>