sindresorhus / ky

🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API
MIT License
13.62k stars 363 forks source link

improve documentation for generic parameters in README #485

Closed scarf005 closed 1 month ago

scarf005 commented 1 year ago

Rationale

https://github.com/sindresorhus/ky/blob/b86ff0a4e8d66c363df17612c968c023560f9241/index.test-d.ts#L132 json function can accept type parameters. however issue #312 was raised because README.md did not address which function accepts generic parameters.

Solution

I suggest adding more documentation for functions that accept generic parameters.