Zhihui-Platform / client

Detected the use of custom TypeScript modules and namespaces JS-0337
Anti-pattern
Minor
2 years ago2 years old
ES2015 module syntax is preferred over custom TypeScript modules and namespaces
26// Alternatively, can be defined in cypress/support/component.d.ts
27// with a <reference path="./component" /> at the top of your spec.
28declare global {
29  namespace Cypress {30    interface Chainable {31      mount: typeof mount32    }33  }34}
35
36Cypress.Commands.add('mount', mount)