Open rndmerle opened 3 years ago
Well, actually with a .ts
test file instead of .js
is working alright.
@rndmerle Could you explain what you did? I'm having some issues.
Well nothing fancy.
test/dts/cypress-commands.d.ts :
declare namespace Cypress {
interface Chainable {
$whatever(): Chainable<any>
}
}
tsconfig.json :
"typeRoots": ["node_modules/@types", "test/__dts__"],
"include": [
// ... other source directories
"test/**/*.ts",
]
If it doesn't help, maybe could you provide a minimal repo reproducing the issue?
Hi and thanks for this package, this is coming in handy. Any way to declare types for custom commands and chai-subsets ? Extending Cypress.Chainable and Cypress.Chainer interfaces the classic way in a .d.ts doesn't seem to work.