import { get as baseGet, set as baseSet, remove as baseRemove } from 'local-storage' export const localStorageService = { get: (key: string, defaultValue: T | null = null): T | null => { const value = baseGet(key) return value === null ? defaultValue : value }, set: (key: string, value: T): boolean => { return baseSet(key, value) }, remove: (key: string): void => { baseRemove(key) } }