Closed cschroeter closed 4 years ago
Looks like you are just removing the Storage type, not using a different one. What am i missing? Sorry, if it's obvious, my brain is in 3 different places today.
If no other interface defined in the current context - the global storage interface is used.
I've updated the PR to explicitly use the globalThis.Storage
:)
Got it. Thanks!
Use global Web Storage API interface so you can pass in
window.localStorage
without TypeScript warnings