Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Sutkowski <msutkowski@gmail.com>
  • Loading branch information
phryneas and msutkowski committed Jul 8, 2022
1 parent e818582 commit 4eee73f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/rtk-query/api/fetchBaseQuery.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ It takes all standard options from fetch's [`RequestInit`](https://developer.moz
- `fetchFn` _(optional)_
- A fetch function that overrides the default on the window. Can be useful in SSR environments where you may need to leverage `isomorphic-fetch` or `cross-fetch`.
- `timeout` _(optional)_
- A number in milliseconds that represents that maximum time a request can take before timing out.
- A number in milliseconds that represents the maximum time a request can take before timing out.

```ts title="Return types of fetchBaseQuery" no-transpile
Promise<{
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/src/query/fetchBaseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export type FetchBaseQueryMeta = { request: Request; response?: Response }
* @param {string} jsonContentType Defaults to `application/json`. Used when automatically setting the content-type header for a request with a jsonifiable body that does not have an explicit content-type header.
*
* @param {number} timeout
* A number in milliseconds that represents that maximum time a request can take before timing out.
* A number in milliseconds that represents the maximum time a request can take before timing out.
*/
export function fetchBaseQuery({
baseUrl,
Expand Down

0 comments on commit 4eee73f

Please sign in to comment.