Skip to content

Type Alias: StepDefinitionBody

@termwright/gherkin


@termwright/gherkin / StepDefinitionBody

StepDefinitionBody<Fixtures> = (context, …captures) => unknown | Promise<unknown>

Defined in: definitions.ts:38

Body of a Given/When/Then definition. Captures follow the context argument.

Fixtures extends object = object

GherkinContext<Fixtures>

…readonly unknown[]

unknown | Promise<unknown>