workItemCreatedFromDraft()
Creates a work item created from draft.
Import
Section titled “Import”import { workItemCreatedFromDraft } from "@graphrefly/ts/solutions/work-item/scheduling";Signature
Section titled “Signature”function workItemCreatedFromDraft( workItemId: string, draft: WorkItemDraft<TInput>, opts: Partial<Omit<WorkItemCreated<TInput>, "kind" | "eventId" | "workItemId" | "draft">> & { readonly eventId?: string; } = {},): WorkItemCreated<TInput>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
workItemId | string | Stable identifier used by the emitted record. |
draft | WorkItemDraft<TInput> | draft value used by the helper. |
opts | Partial<Omit<WorkItemCreated<TInput>, "kind" | "eventId" | "workItemId" | "draft">> & { readonly eventId?: string; } | Options that configure the helper. |
Returns
Section titled “Returns”The work item created from draft result.
Example
Section titled “Example”import { workItemCreatedFromDraft } from "@graphrefly/ts/solutions/work-item/scheduling";Source
Section titled “Source”packages/ts/src/solutions/work-item/scheduling-constructors.ts