Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Might have found an easier way #125

@Vadorequest

Description

@Vadorequest

Keeping support/commands.js as a JS file.

And creating a support/commands.d.ts with:

namespace Cypress {
  interface cy extends Chainable<undefined> {
    getCustomer: () => void;
  }
}

Makes it much easier to setup. Declaration and code is separated (commands) but it's much simpler. (and not really an issue either)

Commands do not benefit from TS support though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions