Skip to content

Commit

Permalink
Fix typo in docs for PersistedOptions
Browse files Browse the repository at this point in the history
`serializer` => `serialize`
`deserializer` => `deserialize`
  • Loading branch information
xehpuk authored Dec 30, 2023
1 parent b8bb608 commit ccd4cd4
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 ccd4cd4

Please sign in to comment.