muxinc/mux-node-sdk

TypeScript: `config` is required in one overload when all config options are optional in v5

devjmetivier opened this issue ยท 2 comments

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, {});

Hey, thanks for filing an issue! I've got a PR out, we'll get this sorted.

#164 is released as 5.0.1.

Thanks!