UNPKG

browser-storage-utilities

Version:

A front-end library that provides utility methods to facilitate CRUD operations to data stored in the browser, and more.

14 lines (11 loc) 267 B
import { IStorageItem } from '../interfaces/storage-typings'; export class StorageItem<T> { key: string; value: T; expiry?: number; constructor(entity: IStorageItem<T>) { this.key = entity.key; this.value = entity.value; this.expiry = entity.expiry; } }