exa-labs / exa-js

MIT License
43 stars 10 forks source link

Enhance type safety in the Request method, and fixed require problem #3

Open XeyberIgideli opened 1 year ago

XeyberIgideli commented 1 year ago

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.