Skip to content

Commit

Permalink
update size snapshot, no exporting types as they can extract
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Nov 8, 2020
1 parent 055a3e9 commit 458fcf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
"gzipped": 251
},
"middleware.js": {
"bundled": 2850,
"minified": 1602,
"gzipped": 726
"bundled": 5854,
"minified": 2970,
"gzipped": 1153
},
"vanilla.js": {
"bundled": 1990,
Expand Down
4 changes: 2 additions & 2 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ export const combine = <
)
)

export type StateStorage = {
type StateStorage = {
getItem: (name: string) => string | null | Promise<string | null>
setItem: (name: string, value: string) => void | Promise<void>
}
export type PersistOptions<S> = {
type PersistOptions<S> = {
name: string
storage?: StateStorage
serialize?: (state: S) => string | Promise<string>
Expand Down

0 comments on commit 458fcf6

Please sign in to comment.