kiwigrid / gherkin-testcafe

Run testcafe tests with gherkin syntax
MIT License
69 stars 2 forks source link

Typed parameters in steps? #63

Closed corneliutusnea closed 4 years ago

corneliutusnea commented 4 years ago

Hi,

Is it possible to make the parameters for the steps typed? async (t, [param1, param2, param3, param4]) Previously when the signature was async (t, param1, param2, param3, param4) I could type them like this: async (t: TestController, param1: string, param2: number, param3: MyCustomType)

Lukas-Kullmann commented 4 years ago

You could type it as async (t, [param1, param2, param3, param4]: [string, number, MyCustomType, any]).