Closed andrisak closed 2 years ago
In the TypeScript bindings, the kthxbye function has this signature:
kthxbye
kthxbye(callback: () => void): void;
However, the callback is called with a parameter here. Because of this, all errors from the library can't be handled properly in a TypeScript app.
Can the TypeScript bindings for kthxbye be adjusted to something like this?
kthxbye(callback: (err: Error) => void): void;
In the TypeScript bindings, the
kthxbye
function has this signature:However, the callback is called with a parameter here. Because of this, all errors from the library can't be handled properly in a TypeScript app.
Can the TypeScript bindings for
kthxbye
be adjusted to something like this?