Skip to content

Commit

Permalink
docs(createAsyncStoragePersister): Update documentation to match type (
Browse files Browse the repository at this point in the history
…#4900)

* Update documentation to match type

There was a mismatch between the type declaration and the documentation.

* fix formating
  • Loading branch information
spiftire committed Jan 30, 2023
1 parent 7a62494 commit 2861488
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/react/plugins/createAsyncStoragePersister.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ interface CreateAsyncStoragePersisterOptions {
}

interface AsyncStorage {
getItem: (key: string) => Promise<string>
setItem: (key: string, value: string) => Promise<unknown>
removeItem: (key: string) => Promise<unknown>
getItem: (key: string) => Promise<string | null>
setItem: (key: string, value: string) => Promise<unknown>
removeItem: (key: string) => Promise<void>
}
```

Expand Down

0 comments on commit 2861488

Please sign in to comment.