Skip to content

Commit b466a75

Browse files
authored
Update nextjs.md (#2324)
1 parent 02ddd70 commit b466a75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides/nextjs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ export type CounterActions = {
5151

5252
export type CounterStore = CounterState & CounterActions
5353

54-
export const defaultInitState: Partial<CounterState> = {
54+
export const defaultInitState: CounterState = {
5555
count: 0,
5656
}
5757

5858
export const createCounterStore = (
59-
initState: Partial<CounterState> = defaultInitState,
59+
initState: CounterState = defaultInitState,
6060
) => {
6161
return createStore<CounterStore>()((set) => ({
6262
...initState,

0 commit comments

Comments
 (0)