export const oneOf = (union: T, ...values: T[]) => values.includes(union);