ウェブエンジニア問題集

TypeScript で以下の型定義があるとき、コンパイルエラーになるコードはどれですか? type Role = 'admin' | 'editor' | 'viewer'; type RoleConfig = Record<Role, { label: string; canEdit: boolean }>; const config: RoleConfig = { ... };