Skip to main content

Workflows (typed)

Typed workflows extend static typing to the workflow level. Type annotations apply to three parts of a workflow, and the Nextflow language server uses them to validate data as it enters, moves through, and leaves a pipeline.

The features compose into an end-to-end chain. A value typed in the params block flows into a workflow's take: section, through its processes, and out through the output block. The language server checks each handoff as you write code.

note

Typed workflows require static typing to be enabled. For more information about the required settings, see Enabling static typing.

Typed parameters

Added in version 25.10

Type annotations on the params block type a pipeline's parameters. The language server validates each parameter reference against its declared type.

See Typed parameters for more information.

Typed outputs

Added in version 25.10

Type annotations on the output block type a workflow's published results. The language server validates each published output against its declared type.

See Typed outputs for more information.

Typed workflows

Added in version 26.04
warning

Typed workflows are a preview feature. The syntax and behavior may change in future releases.

Type annotations in the take: and emit: sections type a workflow's inputs and outputs. The language server validates each input and output against its declared type.

See Typed workflows for more information.

See also

For the complete syntax reference, see Workflow (typed). For more information about converting existing code, see Migrating to static typing.