1 2 3 4 5 6 7 8
declare namespace Tag { interface Node { tag: string; items: Gallery.Item[]; children: Index; } type Index = { [index: string]: Node }; }