-
-
Couldn't load subscription status.
- Fork 57
Closed
Description
Environment (please complete the following information):
- Node.js version: 12.14.1
- NPM version: 6.13.4
- Platform name and version: macOS Mojave 10.14.6
- WebdriverIO version: 5.18.7
- wdio-image-comparison-service version: 1.12.0
Describe the bug
Errors in compile because types functions haven't type 'void' or 'numbers'
To Reproduce
- tsconfig: Add "wdio-image-comparison-service" for "types"
- run
tsc -p tsconfig.json --noEmit --strict
Expected behavior
Clear compilation
Log
node_modules/wdio-image-comparison-service/types/index.d.ts:6:9 - error TS7010: 'saveElement', which lacks return-type annotation, implicitly has an 'any' return type.
6 saveElement(element: Element, tag: string, saveElementOptions?: {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/wdio-image-comparison-service/types/index.d.ts:11:9 - error TS7010: 'saveScreen', which lacks return-type annotation, implicitly has an 'any' return type.
11 saveScreen(tag: string, saveScreenOptions?: {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/wdio-image-comparison-service/types/index.d.ts:16:9 - error TS7010: 'saveFullPageScreen', which lacks return-type annotation, implicitly has an 'any' return type.
16 saveFullPageScreen(tag: string, saveFullPageScreenOptions?: {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/wdio-image-comparison-service/types/index.d.ts:21:9 - error TS7010: 'saveTabbablePage', which lacks return-type annotation, implicitly has an 'any' return type.
21 saveTabbablePage(tag: string, saveTabbableOptions?: {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/wdio-image-comparison-service/types/index.d.ts:26:9 - error TS7010: 'checkElement', which lacks return-type annotation, implicitly has an 'any' return type.
26 checkElement(element: Element, tag: string, checkElementOptions?: {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/wdio-image-comparison-service/types/index.d.ts:31:9 - error TS7010: 'checkScreen', which lacks return-type annotation, implicitly has an 'any' return type.
31 checkScreen(tag: string, checkScreenOptions?: {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/wdio-image-comparison-service/types/index.d.ts:36:9 - error TS7010: 'checkFullPageScreen', which lacks return-type annotation, implicitly has an 'any' return type.
36 checkFullPageScreen(tag: string, checkFullPageOptions?: {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/wdio-image-comparison-service/types/index.d.ts:41:9 - error TS7010: 'checkTabbablePage', which lacks return-type annotation, implicitly has an 'any' return type.
41 checkTabbablePage(tag: string, checkTabbableOptions?: {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Metadata
Metadata
Assignees
Labels
No labels