method ZodEnum.prototype.extractimport { ZodEnum } from "https://deno.land/x/zod@v3.23.0/index.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>>