mailjet / mailjet-apiv3-nodejs

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

The "version" field is not typed #258

Open xiniria opened 1 year ago

xiniria commented 1 year 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.