diff --git a/packages/storage/src/defineExtensionStorage.ts b/packages/storage/src/defineExtensionStorage.ts index 3156fb4..bca99fd 100644 --- a/packages/storage/src/defineExtensionStorage.ts +++ b/packages/storage/src/defineExtensionStorage.ts @@ -71,7 +71,9 @@ export function defineExtensionStorage( } return { - clear: storage.clear, + clear() { + return storage.clear(); + }, getItem(key) { return storage.get(key as string).then(res => res[key as string] ?? null); },