-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type safety for datatable #463
Comments
Not in the version of cucumber that the preprocessor currently depends on. |
It's true that cucumber.js doesn't have type DataTable until version 7, but we should be able to use TableDefinition instead?
Should it be expose through @types/cypress-cucumber-preprocessor? |
Yes, I absolutely think it should, provided that we produce instances of it (which we do). |
I ran into this #385 while I was looking to add It looks like @lgandecki made a decision to update the types in |
Two sources of truth? No. Let me be frank here and excuse my lack of patience. I dislike our use of DefinitelyTyped. In fact, I fact, despise it. I understand the motivation behind DefinitelyTyped and why is it necessary, but I wish it wasn't like that. I would like for us to ship our own types, which would be correlated to version and not be subject to a mismatch game that there currently is. I wish I could say more in response, something more useful. Truth is that we're going to have to make a decision about the way forward, ref. #322. |
I agree, having two sources of truth is awful and being able to just emit correct types based on code would (and I hope will) be the way to go. |
What am hearing from you guys is adding |
Any progress with this? |
Same question - any progress here? Would be great to be able to have it typed. |
Due to personal reasons, the previous maintainers of this package are stepping down and handing the reigns over to me, a long-time contributor to the project and a user of it myself. This is a responsibility I'm very excited about. Furthermore, I'd like to thank @lgandecki ++ for all the work that they've done so far. Read more about the transfer of ownership here. The repository has however moved and all outstanding issues are being closed. This is not a reflection of the perceived importance of your reported issue. However, if after upgrading to the new version, you still find there to be an issue, feel free to open up another ticket or comment below. Please make sure to read CONTRIBUTING.md before doing so. |
Sorry, I know it's closed, but is the conclusion that it's not possible to type |
No, it’s typed since the rewrite. Take a look at the exported members. |
I would like to have type safety for dataTable.
The dataTable object seems to come from cucumber.js. I'm assuming there is no typescript definition for it?
The text was updated successfully, but these errors were encountered: