Represents a hierarchical task or item with nested structure. Used for organizing items in a tree-like structure.
const item: Item = { id: 1, name: "Project A", deadline: new Date("2024-12-31"), type: "project", isComplete: false, nodes: [ { id: 2, name: "Task 1", deadline: new Date("2024-06-30"), type: "task", isComplete: true } ]}; Copy
const item: Item = { id: 1, name: "Project A", deadline: new Date("2024-12-31"), type: "project", isComplete: false, nodes: [ { id: 2, name: "Task 1", deadline: new Date("2024-06-30"), type: "task", isComplete: true } ]};
Unique numeric identifier
Display name of the item
Due date for the item
Classification or category of the item
Indicates whether the item has been completed
Optional
Optional array of child items
Represents a hierarchical task or item with nested structure. Used for organizing items in a tree-like structure.
Example