The example here
https://docs.cypress.io/guides/tooling/typescript-support#Types-for-Custom-Commands gives multiple TypeScript errors.
- Augmentations for the global scope can only be directly nested in external modules or ambient module declarations.ts(2669)
- ES2015 module syntax is preferred over custom TypeScript modules and namespaces.eslint@typescript-eslint/no-namespace
- Type 'Chainable' is not generic.ts(2315)
https://cdn.discordapp.com/attachments/1106228797814079488/1106228797986050089/Screenshot_2023-05-11_at_16.37.49.png▾