export class AbstractStorage { protected key = '' ; public get ( ) { return localStorage . getItem ( this . key ) ?? '' ; } public set ( value ) { localStorage . setItem ( this . key , value ) ; } public reset ( ) { localStorage . removeItem ( this . key ) ; } }