Sequence NODE_173
EasyUse Record to Map Strings to Numbers
TypeScript
Technical Specification
Create a type alias ScoreMap that maps string keys to number values using Record.
Input/Output Samples
Input:ScoreMap
Output:{ [key: string]: number }
Optimal Logic Path
type ScoreMap = Record<string, number>;Architectural Deep-Dive
Record is handy when you want a simple dictionary-like type with consistent value types.