GraphReFlyTS

API Reference

workItemSpawnProposed()

Creates a work item spawn proposed.

Import

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

Signature

function workItemSpawnProposed(
	proposalId: string,
	draft: WorkItemDraft<TInput>,
	opts: Partial<Omit<WorkItemSpawnProposed<TInput>, "kind" | "proposalId" | "draft">> = {},
): WorkItemSpawnProposed<TInput>

Parameters

ParameterTypeDescription
proposalIdstringStable identifier used by the emitted record.
draftWorkItemDraft<TInput>draft value used by the helper.
optsPartial<Omit<WorkItemSpawnProposed<TInput>, "kind" | "proposalId" | "draft">>Options that configure the helper.

Returns

The work item spawn proposed result.

Example

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

Source

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