errors
errors copied to clipboard
Incorrect typings. makeConstructor returns void but it should return a constructor
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.