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
| Parameter | Type | Description |
|---|---|---|
proposalId | string | Stable identifier used by the emitted record. |
draft | WorkItemDraft<TInput> | draft value used by the helper. |
opts | Partial<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