-
Notifications
You must be signed in to change notification settings - Fork 794
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 Definition missing 'version' - error TS2339: Property 'version' does not exist on type 'typeof axe' #2378
Comments
Thanks for letting us know. I'll make sure to address this when i fix #2317 |
Thanks @straker |
@mohanraj-r It's maintained by hand, which is why there's an issue at all. Would you be interested in putting in a PR? The file to change is this one: https://github.com/dequelabs/axe-core/blob/develop/axe.d.ts |
Thanks @WilcoFiers I can take a stab at it. |
@mohanraj-r our tests for the type file are located here https://github.com/dequelabs/axe-core/blob/develop/typings/axe-core/axe-core-tests.ts |
Thanks @straker I will take a stab at it soon - btw if we were to hold a axe hackathon in our team as a way of contributing back is there a list of good first issues that we can use ? I noticed there isn't a corresponding github issue label. |
@mohanraj-r I can go find some issues and put the Also, we'll need the version fix in by end of day today (5pm MST) as we are putting a code freeze in place for our release next week. If you can't get it in by then I'll fix it so we have it for 4.0. |
|
Thanks @straker |
@mohanraj-r no problem. I've gone through and put the help wanted label on a handful of issues. Some of these issues are discussion points (not ready for prs), but most of them are able to receive a pr. Let us know if you have any questions about the issues and we'll be happy to help. When are you planning the hackathon? |
Thanks @straker |
Expectation:
axe.version
doesn't result in type errorActual: Accessing version with
axe.version
results inerror TS2339: Property 'version' does not exist on type 'typeof axe'
Motivation: Type definition should match runtime behavior where
axe.version
works directly in browser console or in code after suppressing the errorThe text was updated successfully, but these errors were encountered: