Closed ForbesLindesay closed 4 years ago
Renamed Record
to Object
and deprecated Record
so it can be used for "Dictionaries"
Before
Record({value: String})
// => Runtype<{value: string}>
Dictionary(String, 'number')
// => Runtype<{[key: number]: string}>
After
Object({value: String})
// => Runtype<{value: string}>
Record(Number, String)
// => Runtype<{[key: number]: string}>
This leaves a deprecated Dictionary that matches (as close as possible) the signature of the old Runtype dictionaries.