Skip to content

Commit

Permalink
update typescript.md
Browse files Browse the repository at this point in the history
  • Loading branch information
garrett-hopper authored Aug 1, 2022
1 parent 5572ff6 commit 73cb372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface BearState {
increase: (by: number) => void
}

const useBoundStore = create<BearState>()((set) => ({
const useBearStore = create<BearState>()((set) => ({
bears: 0,
increase: (by) => set((state) => ({ bears: state.bears + by })),
}))
Expand Down Expand Up @@ -59,7 +59,7 @@ The thing is Zustand is lying in it's type, the simplest way to prove it by show
```ts
import create from 'zustand/vanilla'

const useBearStore = create<{ foo: number }>()((_, get) => ({
const useBoundStore = create<{ foo: number }>()((_, get) => ({
foo: get().foo,
}))
```
Expand Down

0 comments on commit 73cb372

Please sign in to comment.