From b466a7585ef226d80bcb77a2bf9b788a2d039b3e Mon Sep 17 00:00:00 2001 From: Danilo Britto Date: Fri, 9 Feb 2024 19:14:38 -0500 Subject: [PATCH] Update nextjs.md (#2324) --- docs/guides/nextjs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/nextjs.md b/docs/guides/nextjs.md index bdda2091e7..3147b6bf34 100644 --- a/docs/guides/nextjs.md +++ b/docs/guides/nextjs.md @@ -51,12 +51,12 @@ export type CounterActions = { export type CounterStore = CounterState & CounterActions -export const defaultInitState: Partial = { +export const defaultInitState: CounterState = { count: 0, } export const createCounterStore = ( - initState: Partial = defaultInitState, + initState: CounterState = defaultInitState, ) => { return createStore()((set) => ({ ...initState,