Skip to content

Commit

Permalink
[storage] Fix typo in docs for PersistedOptions (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav authored Jan 15, 2024
2 parents 2c841ef + ccd4cd4 commit ef78283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ type PersistedOptions<Type, StorageOptions> = {
// key in the storage API
name?: "...",
// JSON.stringify is the default
serializer?: (value: Type) => value.toString(),
serialize?: (value: Type) => value.toString(),
// JSON.parse is the default
deserializer?: (value: string) => Type(value),
deserialize?: (value: string) => Type(value),
};
```

Expand Down

0 comments on commit ef78283

Please sign in to comment.