Javascript – Typescript Index Signature Template restrictions
I have some Typescript Interfaces that have many repeated, similar fields. For example: interface Foo { person1Name: string; person1Address: string; person2Name: string; person2Address: string; category: string; department: string; } I'm trying to shorten that by using Typescript index signature templates…