workItemSpawnProposed()
Creates a work item spawn proposed.
Import
Section titled “Import”import { workItemSpawnProposed } from "@graphrefly/ts/solutions/work-item/scheduling";Signature
Section titled “Signature”function workItemSpawnProposed( proposalId: string, draft: WorkItemDraft<TInput>, opts: Partial<Omit<WorkItemSpawnProposed<TInput>, "kind" | "proposalId" | "draft">> = {},): WorkItemSpawnProposed<TInput>Parameters
Section titled “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
Section titled “Returns”The work item spawn proposed result.
Example
Section titled “Example”import { workItemSpawnProposed } from "@graphrefly/ts/solutions/work-item/scheduling";Source
Section titled “Source”packages/ts/src/solutions/work-item/scheduling-constructors.ts