Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Latest commit

 

History

History
16 lines (11 loc) · 334 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 334 Bytes

Node.js Package

persist

A typescript decorator to store any variable in localstorage in a typesafe way

usage

import { Persist } from '@yoerivd/persist';

export class ExampleComponent  {
  @Persist(false) toggle;
  @Persist(1) someNumber;
}