TypeScript Используйте ключи объекта в качестве индекса
{ [key in keyof IUser]: boolean }
florinrelea
{ [key in keyof IUser]: boolean }