aboutsummaryrefslogtreecommitdiff
path: root/src/fields/ImageField.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/fields/ImageField.ts')
-rw-r--r--src/fields/ImageField.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/fields/ImageField.ts b/src/fields/ImageField.ts
new file mode 100644
index 000000000..9bfacf231
--- /dev/null
+++ b/src/fields/ImageField.ts
@@ -0,0 +1,17 @@
+import { BasicField } from "./BasicField";
+import { Field } from "./Field";
+
+export class ImageField extends BasicField<URL> {
+ constructor(data: URL) {
+ super(data);
+ }
+
+ toString(): string {
+ return this.Data.href;
+ }
+
+ Copy(): Field {
+ return new ImageField(this.Data);
+ }
+
+} \ No newline at end of file