From 153e234f51aae0607371de9e184cc737658101cf Mon Sep 17 00:00:00 2001 From: Stephen Jason Wang Date: Thu, 16 Jan 2025 00:52:45 +0800 Subject: [PATCH] fix: correct types for $persist and $restore methods --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 352be4a..514d203 100644 --- a/src/types.ts +++ b/src/types.ts @@ -28,8 +28,8 @@ export interface GlobalPersistOptions extends O declare module 'pinia' { export interface PiniaCustomProperties { - $persist: () => void - $restore: () => void + $persist: () => MaybePromise + $restore: () => MaybePromise } // eslint-disable-next-line unused-imports/no-unused-vars export interface DefineStoreOptionsBase {