import { Deserializable } from "../client/util/SerializationHelper"; import { serializable, primitive } from "serializr"; import { ObjectField } from "./ObjectField"; import { Copy, ToScriptString, ToString} 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"; } [ToString]() { return this.html; } }