variable oneOfimport { oneOf } from "https://deno.land/x/froebel@v0.18.0/equality.ts"; Checks if v is one of cmps. type<T, TT extends (T extends string ? string & T : T extends number ? number & T : any)[]>(value: T, ...cmps: TT) => value is TT[number]