1 import { BaseProperty } from "./base"
2
3 /**
4 * The JSONProperty is used to define a property that stores
5 * data as a JSON string.
6 *
7 * The stored data-type defaults to a JSON object, but any
8 * JSON-serializable type can be passed instead, such as an array.
9 */
10 export class JSONProperty<T = Record<string, unknown>> extends BaseProperty<T> {
11 protected dataType = {
12 name: "json",
13 } as const
14 }