aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/HtmlField.ts
blob: 76fdb1f62e813f127f0fda5a0c440d64f29cd41f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Deserializable } from "../client/util/SerializationHelper";
import { serializable, primitive } from "serializr";
import { ObjectField } from "./Doc";

@Deserializable("html")
export class HtmlField extends ObjectField {
    @serializable(primitive())
    readonly html: string;

    constructor(html: string) {
        super();
        this.html = html;
    }
}