https://cypress.io logo
Plugin 'cypress-map' typing
# i-need-help
g
Hi I using 'cypress-map' https://github.com/bahmutov/cypress-map in my test script and it works, but since I am using typescript, the editor keeps complaining about map() method not found in cypress. Is there a typing I can install? Thanks
g
g
got it thanks
hi @gray-kilobyte-89541 i got this error now
Copy code
node_modules/cypress-map/commands/index.d.ts:113:29 - error TS2552: Cannot find name 'function'. Did you mean 'Function'?

113     print(format?: string | function): Chainable<any>
                                ~~~~~~~~

  node_modules/typescript/lib/lib.es5.d.ts:318:13
    318 declare var Function: FunctionConstructor;
                    ~~~~~~~~
    'Function' is declared here.
is it something i need to worry about?
g
Can you open an issue in the cypress-map repo, please? I will fix it
g
done thanks
g
fixed
m
< 2 hour turnaround šŸ‘
g
stupid typescript
2 Views