typescript-generator icon indicating copy to clipboard operation
typescript-generator copied to clipboard

Generate index signature on typescript class/interface

Open yanncap opened this issue 2 years ago • 0 comments

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

yanncap avatar Apr 22 '22 15:04 yanncap