TypeScript Используйте ключи объекта в качестве индекса

{ [key in keyof IUser]: boolean }
florinrelea