diff options
author | srichman333 <sarah_n_richman@brown.edu> | 2024-01-29 14:12:02 -0500 |
---|---|---|
committer | srichman333 <sarah_n_richman@brown.edu> | 2024-01-29 14:12:02 -0500 |
commit | 04d0021899a07ec877d470e914cabbd0897cccea (patch) | |
tree | 6bdae15eab149f671c8f491618be6f249eb7cec6 /src/fields/HtmlField.ts | |
parent | d252886fe97524603ee49e577a535a39f1e664ae (diff) | |
parent | 1a32884f5084d9c39190e44bd9331e94590322e5 (diff) |
merge
Diffstat (limited to 'src/fields/HtmlField.ts')
-rw-r--r-- | src/fields/HtmlField.ts | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/fields/HtmlField.ts b/src/fields/HtmlField.ts index 6e8bba977..b67f0f7e9 100644 --- a/src/fields/HtmlField.ts +++ b/src/fields/HtmlField.ts @@ -1,9 +1,9 @@ -import { Deserializable } from "../client/util/SerializationHelper"; -import { serializable, primitive } from "serializr"; -import { ObjectField } from "./ObjectField"; -import { Copy, ToScriptString, ToString} from "./FieldSymbols"; +import { Deserializable } from '../client/util/SerializationHelper'; +import { serializable, primitive } from 'serializr'; +import { ObjectField } from './ObjectField'; +import { Copy, ToJavascriptString, ToScriptString, ToString } from './FieldSymbols'; -@Deserializable("html") +@Deserializable('html') export class HtmlField extends ObjectField { @serializable(primitive()) readonly html: string; @@ -17,8 +17,11 @@ export class HtmlField extends ObjectField { return new HtmlField(this.html); } + [ToJavascriptString]() { + return 'invalid'; + } [ToScriptString]() { - return "invalid"; + return 'invalid'; } [ToString]() { return this.html; |