Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

typescript

Typescript interface for nested array of objects

You can you following two method if you are using two interfaces.

export interface Address {
        street: string,
        province: string
    }

  export interface User {
        name: string;
        address: Address[]
    }
export interface User {
        name: string;
        address: Array<Address>
    }

I you are using only single interface you can use following notation

export interface User {
    name: string;
    address: {
       street: string,
       province: string
    }[]
}