PickwickSoft / innovedu

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
139});
140
141declare global {
142  namespace Cypress {143    interface Chainable<Subject> {144      getOauth2Data(): Cypress.Chainable;145      oauthLogin(oauth2Data: any, username: string, password: string): Cypress.Chainable;146      keycloakLogin(oauth2Data: any, username: string, password: string): Cypress.Chainable;147      auth0Login(oauth2Data: any, username: string, password: string): Cypress.Chainable;148      oktaLogin(oauth2Data: any, username: string, password: string): Cypress.Chainable;149      oauthLogout(): Cypress.Chainable;150    }151  }152}
153
154// Convert this to a module instead of script (allows import/export)