diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-10 01:40:22 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-10 01:40:22 +0100 |
commit | 410404cfdd54c083b6609fd52334e02d320145d7 (patch) | |
tree | ac934bde696f099590496d23bdd636f691f4c637 /static/types.ts | |
parent | Basic event modification works again. (diff) | |
download | calp-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 'static/types.ts')
-rw-r--r-- | static/types.ts | 7 |
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"; |