Find my current (non-working) code in the following playground please
Currently Object.fromEntries
returns {[k: string]: number}
dynamically, but I'd like it to be typed. It would have to return a type with exactly the keys returned by TransformedProperties
method and number
type for the value.
This way, when I call the transform
method, it knows that the type is for example:
{
time_worked: 10,
other_property_one: 1,
other_property_two: 0,
}