From 1df15b2ceaef09b48a39aa6046b577da11ea2f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 26 Nov 2021 15:32:41 +0100 Subject: Got categories working. --- static/types.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'static/types.ts') diff --git a/static/types.ts b/static/types.ts index 2c26308e..567b9a95 100644 --- a/static/types.ts +++ b/static/types.ts @@ -129,7 +129,7 @@ type known_ical_types | 'URL' | 'VERSION' -let valid_input_types: Map = +let valid_input_types: Map> = new Map([ ['ACTION', ['text']], // AUDIO|DISPLAY|EMAIL|*other* ['ATTACH', ['uri', 'binary']], @@ -178,7 +178,7 @@ let valid_input_types: Map = ['UID', ['text']], ['URL', ['uri']], ['VERSION', ['text']], - ]) as Map + ]) // type JCalLine { // } @@ -191,7 +191,9 @@ type uid = string 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, ical_type, any[]] +type JCalProperty + = [string, Record, ical_type, any] + | [string, Record, ical_type, ...any[]] type JCal = [tagname, JCalProperty[], JCal[]] -- cgit v1.2.3