method ZodEnum.prototype.extractimport { ZodEnum } from "https://dotland.deno.dev/x/zod@v3.23.7/external.ts"; 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>>