bahmutov/cypress-map

Typescript type definition complains about 'function'

Closed this issue ยท 1 comments

When I run cypress with typescript and cypress-map, I got the following error from typescript:

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.

The script still works.

๐ŸŽ‰ This issue has been resolved in version 1.12.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€