diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-09-05 11:41:46 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-09-05 11:41:46 +0200 |
commit | f653a01328be3b8be6af35c0c96867623765ca5b (patch) | |
tree | aee9a5d3abfc39270f55defd7bc1a7e47920ffc3 /static/ts/jcal.ts | |
parent | Minor whitespace cleanup. (diff) | |
download | calp-f653a01328be3b8be6af35c0c96867623765ca5b.tar.gz calp-f653a01328be3b8be6af35c0c96867623765ca5b.tar.xz |
Move JS documentation into the JS-code.
Texinfo was a bad match for how TypeScript is structured. This also
allows generation of jsdoc pages, which can be nice.
Another large win is that this opens up for the texinfo pages to replace
the Guile heading with different subheadings, including
- external library
- internal library
- C library
- ...
Diffstat (limited to 'static/ts/jcal.ts')
-rw-r--r-- | static/ts/jcal.ts | 4 |
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) { |