📜  嵌套数组打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:33.986000             🧑  作者: Mango

代码示例1
interface IThing {
    active: boolean
}

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

var blopp: IStuff[] = [
    { name: "aa", things: [{ active: true }, { active: false }] },
    { name: "bb", things: null }];