Nested, type secure and auto saving data proxy on TamperMonkey.
Return the type of v
, including null
, undefined
, number
, string
, boolean
, array
, object
, and regexp
.
The raw data used by load_dat
.
WIP
Load dat
with the schema { ty: "object", lvs }
.
With autoSave
on, storage is automatically saved on beforeunload
.
Save dat
to storage.
Clear storage and raw_dat
, which allow to call load_dat
again.
A schema is a JSON to describe how to build and check data.
The root of a schema should be a SchemaNode
.
Type definitions and examples can be found at schema.ts.
For APIs on { ty: "array" }
, see this