API Reference
validateWorkItemDraft()
Validates work item draft input.
Import
import { validateWorkItemDraft } from "@graphrefly/ts/solutions/work-item/scheduling";
Signature
function validateWorkItemDraft(
draft: WorkItemDraft<TInput> | unknown,
opts: { readonly workItemId?: string } = {},
): readonly DataIssue[]
Parameters
| Parameter | Type | Description |
|---|---|---|
draft | WorkItemDraft<TInput> | unknown | draft value used by the helper. |
opts | { readonly workItemId?: string } | Options that configure the helper. |
Returns
Validation diagnostics or the validated projection.
Example
import { validateWorkItemDraft } from "@graphrefly/ts/solutions/work-item/scheduling";
Source
packages/ts/src/solutions/work-item/scheduling-validation.ts