DefinitelyTyped/types/got
Ryan Wilson-Perkin 7bb03173ee [@types/got] Support retries of "POST" method (#35000)
* [@types/got] Support retries of "POST" method

The current list of supported methods for RetryOptions omits the "POST" method. I believe this is because the list was taken from https://www.npmjs.com/package/got#retry however this is only the _default_ methods that are supported. [This issue](https://github.com/sindresorhus/got/issues/757) from the `got` GitHub repo indicates that it _is_ possible to specifically state that you would like to retry on POST as well.

I have a use-case where I'd like to automatically retry failed POSTs but can't right now without overriding the typing.

* Add @ryanwilsonperkin to authors list

To allow dt-bot to ping me of changes to these interfaces and to help
support additional typing changes.

* Add test that "POST" is a supported method

* Match order of other method lists

Every other list of methods puts POST before PUT. Minor point, but may
as well match convention.

* fix: Remove duplicate POST
2019-04-25 19:14:01 -07:00
..
v8
got-tests.ts [@types/got] Support retries of "POST" method (#35000) 2019-04-25 19:14:01 -07:00
index.d.ts [@types/got] Support retries of "POST" method (#35000) 2019-04-25 19:14:01 -07:00
tsconfig.json
tslint.json