From a3c5a73fae39de296cd05bde1a6853e20f84305a Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Thu, 29 Dec 2022 22:16:17 +1100 Subject: Make server send error for breaking unit-count limit --- src/lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.ts') diff --git a/src/lib.ts b/src/lib.ts index a060fad..cd177ff 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -308,7 +308,7 @@ export type HistEventJson = { } export type EventResponseJson = { events: HistEventJson[], - unitCounts: {[x: number]: number}, + unitCounts: {[x: number]: number} | null, } export function jsonToHistDate(json: HistDateJson){ if (json.gcal == null){ -- cgit v1.2.3