aboutsummaryrefslogtreecommitdiff
path: root/static/types.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-11-10 00:47:10 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-11-10 00:47:10 +0100
commitc60a60422f69e29628b6c946a15be271e90015aa (patch)
tree258d128b50f5f162b1feb5e9416f6062ca51fb72 /static/types.ts
parentHandle calendar change through dropdown. (diff)
downloadcalp-c60a60422f69e29628b6c946a15be271e90015aa.tar.gz
calp-c60a60422f69e29628b6c946a15be271e90015aa.tar.xz
Basic event modification works again.
Diffstat (limited to 'static/types.ts')
-rw-r--r--static/types.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/static/types.ts b/static/types.ts
index 1cf77f51..6d1331c7 100644
--- a/static/types.ts
+++ b/static/types.ts
@@ -181,6 +181,10 @@ let valid_input_types: Map<string, ical_type | ical_type[]> =
type tagname = 'vevent' | string
-type JCalProperty = [string, any, ical_type, any[]]
+/* 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?
+*/
+type JCalProperty = [string, Map<string, any>, ical_type, any[]]
type JCal = [tagname, JCalProperty[], JCal[]]