nbubna / store

A better way to use localStorage and sessionStorage
MIT License
1.91k stars 110 forks source link

Fix: Type: `store.namespace('xxx').session` not typed #85

Closed zhangciwu closed 4 years ago

zhangciwu commented 4 years ago

Fixes #84

lwm98 commented 3 years ago

你好,我刚刚下载的版本2.12.0 还是存在这个问题,过来才看到,感谢! 顺便问一下 有新版本了嘛 自己改源码别人用不了。。

zhangciwu commented 3 years ago

@lwm98 Workaround:

import store, { StoreAPI } from 'store2';

export const someLocalStorage = store.namespace(`foo`).local as StoreAPI;