TypeScript: `config` is required in one overload when all config options are optional in v5
devjmetivier opened this issue ยท 2 comments
devjmetivier commented
v4:
new Mux(token, secret);
// โ๐ผ no TS errors
v5:
new Mux(token, secret);
// โ๐ผ TS Error: No overload expects 2 arguments, but overloads do exist that expect either 1 or 3 arguments.
// ๐๐ผ This is required
new Mux(token, secret, {});
eropple commented
Hey, thanks for filing an issue! I've got a PR out, we'll get this sorted.