Creates a Record<Key, Value> or your custom record.
By default,
record() will widen the keys (K) you specified in the value to form Record<Widen<K>, V>.
You can also override it by specifying a custom record, e.g.:
record<{ a: number }>()
Optionalvalue: R
Creates a
Record<Key, Value>or your custom record. By default,record()will widen the keys (K) you specified in thevalueto formRecord<Widen<K>, V>.You can also override it by specifying a custom record, e.g.:
record<{ a: number }>()