Skip to content

Typescript with noImplicitAny caused implicitly has 'any' type errors when import classes #44

Open
@haihovu

Description

@haihovu

request-promise-lite Version 0.16.0
tsconfig.json has "noImplicitAny": true

Adding this import caused the error shown below: import { ConnectionError } from 'request-promise-lite';

node_modules/request-promise-lite/types/index.d.ts:24:3 - error TS7010: 'debug', which lacks return-type annotation, implicitly has an 'any' return type.

24 debug(...tokens);
~~~~~~~~~~~~~~~~~

node_modules/request-promise-lite/types/index.d.ts:24:9 - error TS7019: Rest parameter 'tokens' implicitly has an 'any[]' type.

24 debug(...tokens);
~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions