import baseStore, { StoreAPI } from 'store2'; const store: StoreAPI = baseStore.namespace(`_exchangeUI` || ''); export class LocalStore { static set(key: T, data: any[T]) { store.set(key, data); } static remove(key: T) { store.remove(key); } static get(key: T): any[T] { return store.get(key); } static clear() { store.clear(); } }