Skip to content

World is not properly typed in the latest wersion #1667

@MilanJimi

Description

@MilanJimi

Node v12.19.0, TypeScript v4.2.4, @cucumber/cucumber v7.2.1, Ubuntu v20.04

I can no longer use World in my tests, because this is no longer typed inside the Given/When/Then functions, instead defaulting to being typed as any.

If I downgrade to version cucumber v7.0.0-rc.0, this is properly typed as World.
image

image

Metadata

Metadata

Assignees

Labels

🐛 bugDefect / Bug✅ acceptedThe core team has agreed that it is a good idea to fix this

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions