record
record<
T>(inner):TypeWrapper<Record<string|number,T>>
Defined in: .work/repos/edinburgh/src/types.ts:802
Create a Record type wrapper for key-value objects with string or number keys.
Type Parameters
Section titled “Type Parameters”T
The value type.
Parameters
Section titled “Parameters”TypeWrapper<T>
Type wrapper for record values.
Returns
Section titled “Returns”TypeWrapper<Record<string | number, T>>
A record type instance.
Example
Section titled “Example”const scores = E.record(E.number); // Record<string | number, number>