Learn why Record always requires both a key type and a value type.
type Role = "admin" | "editor" | "viewer"; // Map each role to whether it can publish const canPublish: Record<Role> = { admin: true, editor: true, viewer: false, };
What is the bug in this code?