UNPKG

451 BTypeScriptView Raw
1/// <reference types="node" />
2import { PathLike } from "fs";
3export default class Store<T = Record<string, never>> {
4 private path;
5 private defaults;
6 private static __classIdentifier;
7 private __internalValue;
8 constructor(path: string, defaults?: T, __class?: symbol | null);
9 static from<T>(path: PathLike, defaults?: T): Store<T>;
10 clear(): Store<T>;
11 get age(): number;
12 get value(): T;
13 set value(newValue: T);
14}