Skip to content

Commit

Permalink
fix: correct types for $persist and $restore methods
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjason89 committed Jan 15, 2025
1 parent 83066fa commit 153e234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export interface GlobalPersistOptions<S extends StateTree = StateTree> extends O

declare module 'pinia' {
export interface PiniaCustomProperties {
$persist: () => void
$restore: () => void
$persist: () => MaybePromise<void>
$restore: () => MaybePromise<void>
}
// eslint-disable-next-line unused-imports/no-unused-vars
export interface DefineStoreOptionsBase<S extends StateTree, Store> {
Expand Down

0 comments on commit 153e234

Please sign in to comment.