Skip to content

lodash forEach types broken in v4.14.74 #19228

@AustinMatherne

Description

@AustinMatherne
  • I tried using the @types/xxxx package and had problems.
  • I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript
  • I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
  • [] Mention the authors (see Definitions by: in index.d.ts) so they can respond.

@ types/lodash v4.14.74 is causing type errors in a project I am working on. v4.14.73 works as expected. event is any, but it believes filter is a string.

forEach(event.filters, (filter, name) => {
    ...
});

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