# GanttTaskInfo (@salmonui/gantt)

> The GanttTaskInfo interface of @salmonui/gantt: Computed task information (getTaskInfo).

Canonical: https://salmonui.dev/docs/reference/gantt/GanttTaskInfo

```ts
import type { GanttTaskInfo } from '@salmonui/gantt';
```

Entry index: https://salmonui.dev/docs/reference/gantt (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/gantt.md).

## Reference

Kind: interface

```ts
interface GanttTaskInfo {
    readonly id: RowId;
    readonly parentId: RowId | null;
    readonly level: number;
    readonly start: Date | null;
    readonly end: Date | null;
    readonly duration: number;
    readonly durationUnit: DurationUnit;
    readonly progress: number;
    readonly milestone: boolean;
    readonly parent: boolean;
    readonly manual: boolean;
    readonly unscheduled: boolean;
    readonly work: number;
    readonly wbs: string;
    readonly critical: boolean;
    readonly totalFloat: number;
    readonly predecessors: readonly Dependency[];
    readonly segments: readonly {
        readonly start: Date;
        readonly end: Date;
    }[] | null;
}
```

Computed task information (`getTaskInfo`).

Members (18):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: RowId;` |  |  |
| `parentId` | `readonly parentId: RowId \| null;` |  |  |
| `level` | `readonly level: number;` |  |  |
| `start` | `readonly start: Date \| null;` |  |  |
| `end` | `readonly end: Date \| null;` |  |  |
| `duration` | `readonly duration: number;` |  |  |
| `durationUnit` | `readonly durationUnit: DurationUnit;` |  |  |
| `progress` | `readonly progress: number;` |  |  |
| `milestone` | `readonly milestone: boolean;` |  |  |
| `parent` | `readonly parent: boolean;` |  |  |
| `manual` | `readonly manual: boolean;` |  |  |
| `unscheduled` | `readonly unscheduled: boolean;` |  |  |
| `work` | `readonly work: number;` |  |  |
| `wbs` | `readonly wbs: string;` |  |  |
| `critical` | `readonly critical: boolean;` |  |  |
| `totalFloat` | `readonly totalFloat: number;` |  | Total float in hours of working time (valid with `criticalPath`). |
| `predecessors` | `readonly predecessors: readonly Dependency[];` |  |  |
| `segments` | `readonly segments: readonly {     readonly start: Date;     readonly end: Date; }[] \| null;` |  |  |
