Update nextjs.md (#2324)

This commit is contained in:
Danilo Britto 2024-02-09 19:14:38 -05:00 committed by GitHub
parent 02ddd70d5b
commit b466a7585e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,12 +51,12 @@ export type CounterActions = {
export type CounterStore = CounterState & CounterActions
export const defaultInitState: Partial<CounterState> = {
export const defaultInitState: CounterState = {
count: 0,
}
export const createCounterStore = (
initState: Partial<CounterState> = defaultInitState,
initState: CounterState = defaultInitState,
) => {
return createStore<CounterStore>()((set) => ({
...initState,