Skip to content

Commit

Permalink
Add type @remarks for configureStore's middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
msutkowski committed Apr 18, 2022
1 parent a00b8b8 commit cf827b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/toolkit/src/configureStore.ts
Expand Up @@ -52,6 +52,9 @@ export interface ConfigureStoreOptions<
/**
* An array of Redux middleware to install. If not supplied, defaults to
* the set of middleware returned by `getDefaultMiddleware()`.
*
* @example `middleware: (gDM) => gDM().concat(logger, apiMiddleware, yourCustomMiddleware),
* @see https://redux-toolkit.js.org/api/getDefaultMiddleware#intended-usage
*/
middleware?: ((getDefaultMiddleware: CurriedGetDefaultMiddleware<S>) => M) | M

Expand Down

0 comments on commit cf827b2

Please sign in to comment.