type AllKeyToType = { [P in keyof T]: B; }