-
Notifications
You must be signed in to change notification settings - Fork 39
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
support typescript #37
Comments
@Morriz what do you mean by typescript support ? |
I think you would have to export the types for your javascript exports in a separate |
I am not sure I follow. Do you mean that this plugin is not usable if you have webpack with typescript enabled for cypress? |
Or do you mean that we should write this plugin in typescript? I think it's not that important for this module to be in typescript. |
@Morriz ? |
No, it’s usable as is, but with the types added it works with ts as well. There are probably some type inference tools out there so you can build it |
I still don't quite get what the requirement would be here.
|
I allows TS now everywhere...also plugins and support |
It would work if you add types. Types do not hinder a js package in any way except for maintenance. But you can still write your package in js, and use |
@SgtPooki If types in need we should transform the whole code to typescript. It wouldnt be that hard and in that way we can generate also automatically d.ts file. This could be a good exercise so help on this is welcome. |
Done in #52. Coming up in next release. |
Released in 2.1.0. |
Hi, it would be nice if you could support typescript as well, knowing that cypress supports it out of the box now.
The text was updated successfully, but these errors were encountered: