Skip to content

065-types-you-dont-control/175-definitely-typed may need retooling #50

@AmyShackles

Description

@AmyShackles

It looks as though the lovely folks behind diff now include types in their package. Relatedly, it looks like DefinitelyTyped has removed the types package for diff as a result. So when going through this lesson, you end up getting the initial error instructing you to Try npm i --save-dev @types/diffif it exists or add a new declaration (.d.ts) file containingdeclare module 'diff';`, but that doesn't actually solve the problem, since you then end up with a @types folder with a README that says:

This is a stub types definition for @types/diff (undefined).

diff provides its own type definitions, so you don't need @types/diff installed!

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