The error message you are seeing is related to the `Storage` interface provided by `@plasmohq/storag

The error message you are seeing is related to the Storage interface provided by @plasmohq/storage. Specifically, it is saying that the getAllKeys property is missing from the StorageInterface type, which is required by the Storage type.

To fix this error, you can try updating your import statement for @plasmohq/storage to include the StorageInterface type explicitly. Here's an example:

import { Storage, StorageInterface } from "@plasmohq/storage"


Then, you can update your persistConfig object to use the StorageInterface type instead of the Storage type:

const persistConfig = {
  key: "root",
  version: 1,
  storage: localStorage as StorageInterface
}


By casting
localStorage
as StorageInterface, you are telling TypeScript to treat it as if it has the getAllKeys property, even though it is not explicitly defined in the Storage type.

I hope this helps! Let me know if you have any further questions.
Was this page helpful?