typescript-generator
typescript-generator copied to clipboard
Generate index signature on typescript class/interface
Hello,
I would like to know if there is a way to generate index signature on typescript class or interface like this example :
export class Address {
[key: string]: string | null; // index signature
address1: string;
address2: string | null;
zipCode: string;
city: string;
}
Thanks