Skip to content

Commit 43ddcc1

Browse files
Update src/content/docs/workflows/build/workers-api.mdx
Co-authored-by: Pedro Sousa <[email protected]>
1 parent 28c1a0d commit 43ddcc1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/content/docs/workflows/build/workers-api.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,8 @@ The `Workflow` type exports the following methods:
252252

253253
Create (trigger) a new instance of the given Workflow.
254254

255-
- <code>
256-
create(options?: WorkflowInstanceCreateOptions):
257-
Promise&lt;WorkflowInstance&gt;
258-
</code>
255+
{/* prettier-ignore */}
256+
- <code>create(options?: WorkflowInstanceCreateOptions): Promise&lt;WorkflowInstance&gt;</code>
259257
- `options` - optional properties to pass when creating an instance, including a user-provided ID and payload parameters.
260258

261259
An ID is automatically generated, but a user-provided ID can be specified (up to 64 characters [^1]). This can be useful when mapping Workflows to users, merchants or other identifiers in your system. You can also provide a JSON object as the `params` property, allowing you to pass data for the Workflow instance to act on as its [`WorkflowEvent`](/workflows/build/events-and-parameters/).

0 commit comments

Comments
 (0)