GraphReFlyTS

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

ParameterTypeDescription
draftWorkItemDraft<TInput> | unknowndraft 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