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