[**zonegaze-flow**](../../../../README.md)

***

[zonegaze-flow](../../../../README.md) / [flow/contracts/src](../README.md) / canAddTaskDependency

# Function: canAddTaskDependency()

> **canAddTaskDependency**(`board`, `firstTaskId`, `secondTaskId`): `boolean`

Defined in: [flow/product/src/kanban-adapter/task-board-mutations.ts:564](https://github.com/neuralpilot08/zonegaze-flow/blob/ee47e8308e50071e712017a7f8b0db560a4746ee/flow/product/src/kanban-adapter/task-board-mutations.ts#L564)

Checks whether `addTaskDependency` would create a valid new edge without mutating the board.

## Parameters

### board

#### columns

`object`[] = `...`

#### dependencies

`object`[] = `...`

#### workTypeRegistry

`RuntimeWorkTypeRegistry` = `runtimeWorkTypeRegistrySchema`

### firstTaskId

`string`

### secondTaskId

`string`

## Returns

`boolean`
