GraphReFlyTS

API Reference

validateVerificationPlan()

Validates verification plan input.

Import

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

Signature

function validateVerificationPlan(
	plan: VerificationPlan<TInput>,
	criteria: readonly AcceptanceCriterion[] = [],
	opts: {
		readonly workItemId?: string;
		readonly allowedModes?: readonly VerificationStepMode[];
		readonly allowedEffectKinds?: readonly string[];
	} = {},
): readonly DataIssue[]

Parameters

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.

Returns

Validation diagnostics or the validated projection.

Example

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

Source

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