Recently, I created a type known as TranslationsData
:
[key: string]: { translation: { state: AnotherType } };
Now, I am looking to incorporate this section:
[key: string]: { translation: { state:
into another type, with the only modification being the AnotherType
part.
Is there a method to achieve this? Possibly utilizing a higher order type?
I recall hearing about a specific Type that could help with this, but I cannot remember its name.