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