valeriangalliat / fetch-cookie

Decorator for a `fetch` function to support automatic cookie storage and population. 🍪
The Unlicense
135 stars 29 forks source link

Add JSDoc function documentation with type annotations #43

Closed fabiante closed 2 years ago

fabiante commented 4 years ago

Something like:

  /**
   * @param url {string|Request}
   * @param opts
   * @returns {Promise<*>}
   */
valeriangalliat commented 2 years ago

I rewrote the package in TypeScript with 2.0.0 so all types are now documented!