# GanttDependency (@salmonui/gantt)

> The GanttDependency interface of @salmonui/gantt: A link from a predecessor (id) to the task that owns it; lag in lagUnit of working time (negative = lead).

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

```ts
import type { GanttDependency } 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 Dependency {
    readonly id: TaskId;
    readonly type: DependencyType;
    readonly lag: number;
    readonly lagUnit: DurationUnit;
}
```

A link from a predecessor (`id`) to the task that owns it; `lag` in `lagUnit` of working time (negative = lead).

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: TaskId;` |  |  |
| `type` | `readonly type: DependencyType;` |  |  |
| `lag` | `readonly lag: number;` |  |  |
| `lagUnit` | `readonly lagUnit: DurationUnit;` |  |  |
