Skip to content

Commit

Permalink
chore(docs): fix code highlight (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 authored May 31, 2022
1 parent 12c8138 commit 89c3577
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 @@ -173,7 +173,7 @@ const useStore = create<BearState>()(myMiddlewares((set) => ({
Imagine you had to write this hypothetical middleware...
```js
```ts
import create from "zustand"

const foo = (f, bar) => (set, get, store) => {
Expand Down Expand Up @@ -243,7 +243,7 @@ const useStore = create<BearState>()(logger((set) => ({
### Middleware that changes the store type
```js
```ts
import create, { State, StateCreator, StoreMutatorIdentifier, Mutate, StoreApi } from "zustand"

type Foo =
Expand Down

0 comments on commit 89c3577

Please sign in to comment.