blob: f952acff97c113d986bc3d97ee62bbc4366980c4 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 | import { Deserializable } from "../client/util/SerializationHelper";
import { serializable, primitive } from "serializr";
import { ObjectField } from "./ObjectField";
import { Copy, ToScriptString } from "./FieldSymbols";
@Deserializable("html")
export class HtmlField extends ObjectField {
    @serializable(primitive())
    readonly html: string;
    constructor(html: string) {
        super();
        this.html = html;
    }
    [Copy]() {
        return new HtmlField(this.html);
    }
    [ToScriptString]() {
        return "invalid";
    }
}
 |