Skip to content

Commit 4154feb

Browse files
committed
Fix syntax highlighting for type declarations
1 parent 1be460d commit 4154feb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/api/configureStore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hide_title: true
99

1010
A friendlier abstraction over the standard Redux `createStore` function. Takes a single configuration object parameter, with the following options:
1111

12-
```js
12+
```ts
1313
function configureStore({
1414
// A single reducer function that will be used as the root reducer,
1515
// or an object of slice reducers that will be passed to combineReducers()

docs/api/createReducer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hide_title: true
99

1010
A utility function to create reducers that handle specific action types, similar to the example function in the ["Reducing Boilerplate" Redux docs page](https://redux.js.org/recipes/reducing-boilerplate#generating-reducers). Takes an initial state value and an object that maps action types to case reducer functions. Internally, it uses the [`immer` library](https://github.com/mweststrate/immer), so you can write code in your case reducers that mutates the existing `state` value, and it will correctly generate immutably-updated state values instead.
1111

12-
```js
12+
```ts
1313
function createReducer(
1414
initialState: State,
1515
actionsMap: Object<String, Function>

docs/api/createSelector.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The `createSelector` utility from the [`selectorator` library](https://github.co
1111

1212
For more specifics, see the [`selectorator` usage documentation](https://github.com/planttheidea/selectorator#usage).
1313

14-
```js
14+
```ts
1515
function createSelector(
1616
// Can either be:
1717
// - An array containing selector functions, string keypaths, and argument objects

0 commit comments

Comments
 (0)