11 lines
293 B
TypeScript
11 lines
293 B
TypeScript
|
interface ITestEventInterval {
|
||
|
begin: number;
|
||
|
}
|
||
|
|
||
|
interface IIntervalTreeNode {
|
||
|
interval: ITestEventInterval;
|
||
|
children?: IIntervalTreeNode[];
|
||
|
}
|
||
|
|
||
|
var test: IIntervalTreeNode[] = [{ interval: { begin: 0 }, children: null }]; // was error here because best common type is {}
|