Skip to content

Commit c7312a4

Browse files
fix typos in using-state-machines.md
1 parent 3d85962 commit c7312a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides-1/using-state-machines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const authChanged = ({ state, effects }, user) => {
152152
Let us introduce a new machine, a **todos** machine.
153153

154154
```typescript
155-
import { StateMachine } from 'overmind'
155+
import { Statemachine } from 'overmind'
156156

157157
type Todo = { title: string, completed: boolean }
158158

@@ -178,7 +178,7 @@ type Events =
178178
data: Todo
179179
}
180180

181-
export type TodosMachine = StateMachine<States, Events BaseState>
181+
export type TodosMachine = Statemachine<States, Events, BaseState>
182182

183183
export const todos = statemachine<States, Events, BaseState>({
184184
TODOS_LOADED: (state, todos) => {

0 commit comments

Comments
 (0)