Skip to content

Incorrect typings. makeConstructor returns void but it should return a constructor #111

Description

@mptorz

I am getting TS errors when using errors.makeConstructor().

In your type definitions it is:

export function makeConstructor(name: string, defaults?: any): void;

But according to the docs makeConstructor should return a constructor.

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