method z.ZodEnum.prototype.extractimport { z } from "https://dotland.deno.dev/x/zod@v3.22.2/mod.ts"; const { ZodEnum } = z; extract<ToExtract extends readonly [T[number], ...T[number][]]>(values: ToExtract): ZodEnum<Writeable<ToExtract>>Type ParametersToExtract extends readonly [T[number], ...T[number][]]Parametersvalues: ToExtractReturnsZodEnum<Writeable<ToExtract>>