# defineStep

Source: /tuil/docs/reference/packages/workflow/api/define-step
Locale: en

function exported by @mwillbanks/tuil-workflow.



{/* Generated by tooling/docs/generate-reference.ts. */}

## function [#function]

Public function exported by `@mwillbanks/tuil-workflow`.

```ts
export function defineStep<TState>(
  step: WorkflowStep<TState>,
): WorkflowStep<TState>;
```

## Members [#members]

This declaration has no public members.

## Parameters [#parameters]

| Member | Type                   | Required | Description                                          | Related types                                                         |
| ------ | ---------------------- | -------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `step` | `WorkflowStep<TState>` | Yes      | Supplies the `step` value as `WorkflowStep<TState>`. | [`WorkflowStep`](/tuil/docs/reference/packages/workflow/api/workflow-step) |

## Returns [#returns]

`WorkflowStep<TState>` — Returns a value that satisfies `WorkflowStep<TState>`.

Related types: [`WorkflowStep`](/tuil/docs/reference/packages/workflow/api/workflow-step)

## Throws [#throws]

No thrown errors are documented for this declaration.

## Related types [#related-types]

* [`WorkflowStep`](/tuil/docs/reference/packages/workflow/api/workflow-step)

## Source [#source]

[View the secondary source reference](https://github.com/mwillbanks/tuil/blob/main/packages/workflow/src/index.ts)

## Package [#package]

[@mwillbanks/tuil-workflow](/tuil/docs/reference/packages/workflow)
