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[]; } 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -