Issue
I have an object like this:
{
"address": ["line1", "line2", "line3"]
}
How to define address in an interface? the number of elements in the array is not fixed.
Solution
interface Addressable {
address: string[];
}
Answered By - derkoe
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.