Skip to content

Mocha's type definitions pollute and break other node modules  #22510

@falsandtru

Description

@falsandtru

For example, it changes the return type of setTimeout and causes some errors.

node_modules/spica/throttle.ts(7,5): error TS2322: Type 'Timer' is not assignable to type 'number'.
node_modules/spica/throttle.ts(28,5): error TS2322: Type 'Timer' is not assignable to type 'number'.

This is caused by #22112.

@aozgaa Can you revert that change?

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