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
To fix this error, you can try updating your import statement for
Then, you can update your
By casting
I hope this helps! Let me know if you have any further questions.
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:Then, you can update your
persistConfig object to use the StorageInterface type instead of the Storage type: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.