Skip to content

Commit

Permalink
feat:edit options type
Browse files Browse the repository at this point in the history
  • Loading branch information
l-x-f committed Nov 17, 2021
1 parent a533ced commit 0bf1288
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pinia-persistedstate-plugin",
"version": "0.0.5",
"version": "0.0.6",
"description": "A pinia plugin like vuex-persistedstate.",
"types": "dist/index.d.ts",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ export interface Options {
/**
* 存贮类型,默认为 `window.localStorage`
*/
storage: Storage
storage?: Storage
/**
* 存储的key值,默认为 `pinia`
*/
key: string
key?: string
/**
* 是否开启日志,默认为 `false`
*/
logger: boolean
logger?: boolean
}

/**
Expand Down

0 comments on commit 0bf1288

Please sign in to comment.