Adjust the signature of kthxbye in the TypeScript bindings
Closed this issue · 0 comments
andrisak commented
In the TypeScript bindings, the kthxbye
function has this signature:
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;