Skip to content
PACKAGES

validateWorkItemDraft()

Validates work item draft input.

import { validateWorkItemDraft } from "@graphrefly/ts/solutions/work-item/scheduling";
function validateWorkItemDraft(
draft: WorkItemDraft<TInput> | unknown,
opts: { readonly workItemId?: string } = {},
): readonly DataIssue[]
ParameterTypeDescription
draftWorkItemDraft<TInput> | unknowndraft value used by the helper.
opts{ readonly workItemId?: string }Options that configure the helper.

Validation diagnostics or the validated projection.

import { validateWorkItemDraft } from "@graphrefly/ts/solutions/work-item/scheduling";

packages/ts/src/solutions/work-item/scheduling-validation.ts