Skip to content

TypeScript errors in compile #24

@balukov

Description

@balukov

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

  1. tsconfig: Add "wdio-image-comparison-service" for "types"
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions