Skip to content

Commit 68a85f2

Browse files
committed
move JSDoc
1 parent 31c8a93 commit 68a85f2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/toolkit/src/createSlice.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -583,14 +583,6 @@ interface BuildCreateSliceConfig {
583583
}
584584
}
585585

586-
/**
587-
* A function that accepts an initial state, an object full of reducer
588-
* functions, and a "slice name", and automatically generates
589-
* action creators and action types that correspond to the
590-
* reducers and state.
591-
*
592-
* @public
593-
*/
594586
export function buildCreateSlice({ creators }: BuildCreateSliceConfig = {}) {
595587
const cAT = creators?.asyncThunk?.[asyncThunkSymbol]
596588
return function createSlice<
@@ -787,6 +779,14 @@ export function buildCreateSlice({ creators }: BuildCreateSliceConfig = {}) {
787779
}
788780
}
789781

782+
/**
783+
* A function that accepts an initial state, an object full of reducer
784+
* functions, and a "slice name", and automatically generates
785+
* action creators and action types that correspond to the
786+
* reducers and state.
787+
*
788+
* @public
789+
*/
790790
export const createSlice = buildCreateSlice()
791791

792792
interface ReducerHandlingContext<State> {

0 commit comments

Comments
 (0)