export type PickEnum = { [P in keyof K]: P extends K ? P : never; };