Skip to content

Commit 1d3be32

Browse files
authored
Fix the example code in "Quick start" tutorial
VSCode shows the error ``` Exported variable 'store' has or is using name 'CounterState' from external module ".../src/client/features/counter/counterSlice" but cannot be named. ts(4023) ``` Managed to fix this by exporting the CounterState.
1 parent bb594a0 commit 1d3be32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/quick-start.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Redux requires that [we write all state updates immutably, by making copies of d
112112
```ts title="features/counter/counterSlice.js"
113113
import { createSlice, PayloadAction } from '@reduxjs/toolkit'
114114

115-
interface CounterState {
115+
export interface CounterState {
116116
value: number
117117
}
118118

0 commit comments

Comments
 (0)