How to define an array of strings in TypeScript interface? -
i have object this:
{ address : ['line1', 'line2', line3']}
how define address
in interface? number of elements in array not fixed.
interface addressable { address : string[]; }
i have object this:
{ address : ['line1', 'line2', line3']}
how define address
in interface? number of elements in array not fixed.
interface addressable { address : string[]; }
Comments
Post a Comment