tkh44 / holen

Declarative fetch for React
MIT License
150 stars 16 forks source link

PATCH request method throws prop type warning #9

Closed antonydb closed 6 years ago

antonydb commented 6 years ago

Holen currently whitelists GET, POST, PUT and DELETE, and throws a prop-type warning when you try to use the PATCH method. While it's only a warning and doesn't restrict you from using the PATCH method, it would be nice not to receive the warning.

image

Happy to create a PR :)

tkh44 commented 6 years ago

Oh wow totally missed that. I'd be happy to accept a PR that added patch and PATCH to the prop type list.

jamesplease commented 6 years ago

This issue can be closed :v: