Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

nested array typescript

interface IThing {
    active: boolean
}

interface IStuff {
    name: string;
    things: IThing[]
}

var blopp: IStuff[] = [
    { name: "aa", things: [{ active: true }, { active: false }] },
    { name: "bb", things: null }];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nested #array #typescript
ADD COMMENT
Topic
Name
7+4 =