aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/HtmlField.ts
blob: f8e54ade56d9811f533a12bd74a836ecb57ed9a6 (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 URLField extends ObjectField {
    @serializable(primitive())
    readonly html: string;

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