Skip to content

Typescript for runtime properties still missing? #19001

@GCHQDeveloper911

Description

@GCHQDeveloper911

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

No one assigned

    Labels

    type: typingsIssue related to Cypress types (for TypeScript)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions