aboutsummaryrefslogtreecommitdiff
path: root/static/ts/jcal.ts
diff options
context:
space:
mode:
Diffstat (limited to 'static/ts/jcal.ts')
-rw-r--r--static/ts/jcal.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/static/ts/jcal.ts b/static/ts/jcal.ts
index 41f33db4..6a491e04 100644
--- a/static/ts/jcal.ts
+++ b/static/ts/jcal.ts
@@ -3,6 +3,10 @@ export { jcal_to_xcal }
import { xcal, ical_type, JCalProperty, JCal } from './types'
import { asList } from './lib'
+/**
+ * A document with the xcal namespace, and @code{icalendar} as its root
+ * element. Each child is a valid xcal representation of our JCal object.
+ */
function jcal_type_to_xcal(doc: Document, type: ical_type, value: any): Element {
let el = doc.createElementNS(xcal, type);
switch (type) {