Skip to content

Bad definition of NotFoundError function type in index.d.ts #31

@igorvolnyi

Description

@igorvolnyi

Here is what compiler says:

node_modules/join-js/index.d.ts:21:3 - error TS1038: A 'declare' modifier cannot be used in an already ambient context.

21   declare function NotFoundError(message?: string): void;
     ~~~~~~~
node_modules/join-js/index.d.ts:25:20 - error TS2749: 'NotFoundError' refers to a value, but is being used as a type here. Did you mean 'typeof NotFoundError'?

25     NotFoundError: NotFoundError

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