Constructors
constructor
- new PersistedStore<T extends unknown>(
name: string,
defaultValue: T,
serializer?: Serializer<any>,
): PersistedStore<T> Parameters
- name: string
- defaultValue: T
Optional
serializer: Serializer<any>
Properties
Readonly
name
name: string
value
Methods
load
- load(): void
Returns void
save
- save(): void
Returns void
Manages persistent storage of data with automatic serialization
Example: Storing Complex Data