mailjet / mailjet-apiv3-nodejs

[API v3] Official Mailjet API v3 NodeJS wrapper
https://dev.mailjet.com
MIT License
232 stars 67 forks source link

The "version" field is not typed #258

Open xiniria opened 9 months ago

xiniria commented 9 months ago

I recently came across an issue when using the MailJet Node SDK, because of the version field in the RequestConfig: I had written '3.1' instead of 'v3.1'. My proposal is to type this field as 'v3' | 'v3.1' to prevent this from happening in the future to other users. I can open a PR.