aboutsummaryrefslogtreecommitdiff
path: root/static/types.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-11-10 01:40:22 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-11-10 01:40:22 +0100
commit410404cfdd54c083b6609fd52334e02d320145d7 (patch)
treeac934bde696f099590496d23bdd636f691f4c637 /static/types.ts
parentBasic event modification works again. (diff)
downloadcalp-410404cfdd54c083b6609fd52334e02d320145d7.tar.gz
calp-410404cfdd54c083b6609fd52334e02d320145d7.tar.xz
Re-modularize javascript.
This moves almost everything out of globals.ts, into sepparate files. Things are still slightly to tightly coupled. But that is worked on.
Diffstat (limited to '')
-rw-r--r--static/types.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/static/types.ts b/static/types.ts
index 6d1331c7..f371c72a 100644
--- a/static/types.ts
+++ b/static/types.ts
@@ -1,7 +1,8 @@
export {
ical_type,
valid_input_types,
- JCalProperty, JCal
+ JCalProperty, JCal,
+ xcal, uid
}
let all_types = [
@@ -181,6 +182,8 @@ let valid_input_types: Map<string, ical_type | ical_type[]> =
type tagname = 'vevent' | string
+type uid = string
+
/* TODO is this type correct?
What really are valid values for any? Does that depend on ical_type? Why is the tail a list?
What really is the type for the parameter map?
@@ -188,3 +191,5 @@ type tagname = 'vevent' | string
type JCalProperty = [string, Map<string, any>, ical_type, any[]]
type JCal = [tagname, JCalProperty[], JCal[]]
+
+const xcal = "urn:ietf:params:xml:ns:icalendar-2.0";