errors icon indicating copy to clipboard operation
errors copied to clipboard

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

Open mptorz opened this issue 2 months ago • 0 comments

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.

mptorz avatar Nov 11 '25 14:11 mptorz