whatadewitt / yahoo-fantasy-sports-api

NodeJS wrapper for the Yahoo! Fantasy Sports API
https://yahoo-fantasy-node-docs.vercel.app/
MIT License
200 stars 54 forks source link

fix error loading certain league settings #80

Closed connor4312 closed 3 years ago

connor4312 commented 3 years ago

It seems like some (older?) leagues are missing this, which causes an error when retrieving their settings.

whatadewitt commented 3 years ago

oh good find... i've planned to make typescript typings for this, but time is not friendly!!

i should be able to merge this in this week!

connor4312 commented 3 years ago

TS typings would be great 😄 I'm a TypeScript consumer and type the interface manually. Though you still ultimately have to assume API types yourself, which may or may not have caught this issue.