Aiming to improve type safety in the request method by adding type annotations and assertions, making the code more reliable and maintainable. No more "Object is of type 'unknown'" error.
Also fixed require problem arising from node-fetch's latest versions that not supporting require anymore.
Aiming to improve type safety in the
request
method by adding type annotations and assertions, making the code more reliable and maintainable. No more "Object is of type 'unknown'" error. Also fixed require problem arising from node-fetch's latest versions that not supporting require anymore.