Record
TypeScript
で利用できる
組み込み型
.
ある
型
を
Key
としてある
型
を
Value
とできる.
code:.ts
type Score = Record<string, number>
const val: Score = {
"math": 300,
}