-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
type: typingsIssue related to Cypress types (for TypeScript)Issue related to Cypress types (for TypeScript)
Description
Current behavior
When using typescript with Cypress, if I do something like:
if (Cypress.config('isInteractive')){
cy.log('yes it is')
}
Then vsCode is complaining that "No overload matches this call" because "Type '"isInteractive"' has no properties in common with type 'ConfigOptions'"
Supposedly this was addressed in issue #14392 (pull req #14584) - but this seems to still be an issue.
Desired behavior
Cypress should provide support for runtime properties in the developer's IDE of choice.
Test code to reproduce
See above.
Cypress Version
9.0.0
Other
No response
Metadata
Metadata
Assignees
Labels
type: typingsIssue related to Cypress types (for TypeScript)Issue related to Cypress types (for TypeScript)