Skip to content
PACKAGES

validateVerificationPlan()

Validates verification plan input.

import { validateVerificationPlan } from "@graphrefly/ts/solutions/work-item/scheduling";
function validateVerificationPlan(
plan: VerificationPlan<TInput>,
criteria: readonly AcceptanceCriterion[] = [],
opts: {
readonly workItemId?: string;
readonly allowedModes?: readonly VerificationStepMode[];
readonly allowedEffectKinds?: readonly string[];
} = {},
): readonly DataIssue[]
ParameterTypeDescription
planVerificationPlan<TInput>plan value used by the helper.
criteriareadonly AcceptanceCriterion[]criteria value used by the helper.
opts{ readonly workItemId?: string; readonly allowedModes?: readonly VerificationStepMode[]; readonly allowedEffectKinds?: readonly string[]; }Options that configure the helper.

Validation diagnostics or the validated projection.

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

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