Record with specific keys?
I'm trying to do the following:
But understandably I can't provide a
I know I need to define an object with specific keys, but is there a way to somehow create this object without having to redeclare the same keys?
Or I guess to ask this in a different way, is there an easy way to create a type where the object has specific keys, but the value for each key is exactly the same?
But understandably I can't provide a
type.Record specific keys.I know I need to define an object with specific keys, but is there a way to somehow create this object without having to redeclare the same keys?
Or I guess to ask this in a different way, is there an easy way to create a type where the object has specific keys, but the value for each key is exactly the same?
ScanReportsSchema has specific keys, but the values of those keys is always ScanReportSchema.