validateWorkItemEffectPlan()
Validates work item effect plan input.
Import
Section titled “Import”import { validateWorkItemEffectPlan } from "@graphrefly/ts/solutions/work-item/scheduling";Signature
Section titled “Signature”function validateWorkItemEffectPlan( proposal: WorkItemEffectPlanProposed<TInput> | unknown, workItem: WorkItemProjection<TInput> | undefined, policy: WorkItemEffectPlanPolicy = {},): readonly DataIssue[]Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
proposal | WorkItemEffectPlanProposed<TInput> | unknown | Proposal to admit, issue, or project. |
workItem | WorkItemProjection<TInput> | undefined | work item value used by the helper. |
policy | WorkItemEffectPlanPolicy | Policy object used to admit, retry, or route work. |
Returns
Section titled “Returns”Validation diagnostics or the validated projection.
Example
Section titled “Example”import { validateWorkItemEffectPlan } from "@graphrefly/ts/solutions/work-item/scheduling";Source
Section titled “Source”packages/ts/src/solutions/work-item/scheduling-effect-plan-validation.ts