/**
* Wraps the JavaScript Fetch function to anonymize where the request is coming from ([Docs ↗](https://docs.val.town/std/fetch))
*
* @param {string | URL} url - The URL to fetch
* @param {RequestInit} [requestInit] - Optional configuration data (HTTP method, headers, etc) ([Docs ↗](https://deno.land/api@v1.42.1?s=RequestInit))
*/
I think we should also consider adding the type (ie string or RequestInit) in such a way that it shows up on hover or changing the product to render that info.
The main comment is probably too long. Maybe we can link out to the full docs from the JSDdoc widget? That could be neat.
Also, include the params in the JSDoc string?
With params:
And we don't need to specify
RequestInit
's fields, since it has its own JSDocs:I tweaked it a bit
I think we should also consider adding the type (ie
string
orRequestInit
) in such a way that it shows up on hover or changing the product to render that info.