Type Definition missing 'version' - error TS2339: Property 'version' does not exist on type 'typeof axe'
See original GitHub issueExpectation: axe.version doesn’t result in type error
Actual: Accessing version with axe.version results in error 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 error
axe-core version: 3.5.5
axe-webdriver, extension or other integration version: NA
Browser and Assistive Technology versions
For Tooling issues:
- Node version: v12.18.2
- Platform: Mac
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
error TS2339: Property 'x' does not exist on type 'Y'
The correct fix is to add the property in the type definition as ... I'm no expert in Typescript, but I think the...
Read more >TypeScript “Property does not exist on type” | by Mike Diaz
Before we go any further, note that this error has an ID number (TS2339). Take note of that since it makes it easier...
Read more >Typescript Type System: How Does it Really Work? Type ...
Let's have a look at the error message we get: Error:(54, 6) TS2339:Property 'name' does not exist on type '{}'. So what is...
Read more >webdriverio/webdriverio - Gitter
Error : ⨯ Unable to compile TypeScript: src/tests/login.spec.ts(10,31): error TS2339: Property 'toExist' does not exist on type 'Matchers<Element>'.
Read more >Using TypeScript or ES6 – amCharts 4 Documentation
You'll appreciate the code-completion and type-check built right into core of amCharts 4. ... Using any older version will result in error.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@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 for letting us know. I’ll make sure to address this when i fix #2317