YBogomolov / fetcher-ts

Type-safe wrapper around Fetch API
MIT License
131 stars 9 forks source link

Add restError handler to allow rejecting error when no codes passed #14

Open Lonli-Lokli opened 3 years ago

Lonli-Lokli commented 3 years ago

Currently discardRest method always returns Either.right as a fallback, this PR address this and adds posibility to reject with Either.Left