-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
TypeScript typings #78
Comments
In retrospect, it might be better to add it to DefinitelyTyped—that way users don't have to generate any code to stay up-to-date with the gem. |
This looks like a great start. I am definitely open to a PR 👍🏽 |
That leads to a good question if we should have the javascript portion, the custom commands inside of its own NPM module that way it is always up-to-date and users don't need to regenerate the assets. |
Yes, after some discussion, that is part of the idea for Version 2 #24 (comment) |
Howdy, would you be open to giving the generator the ability to generate TypeScript declarations in addition to the JS code it already generates? It would be handy because it would give some editors autocomplete when typing things like
cy.appFactories
.Could be something opt-in like this:
I've taken a stab at making some basic types. I could work on it more and add them as a PR, if you're interested. If not, I can just add them to the DefinitelyTyped repository (so people can do
yarn add --dev @types/cypress-on-rails
to get the types).Like I said, definitely incomplete—but for example this lets me use some factory bot things.
The text was updated successfully, but these errors were encountered: