From 86e22ca4fb7dceec43a528bd250bcda2a0133421 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 25 Aug 2020 00:02:44 +0800 Subject: Fix type errors. --- Timeline/ClientApp/src/app/http/mock/timeline.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Timeline/ClientApp/src') diff --git a/Timeline/ClientApp/src/app/http/mock/timeline.ts b/Timeline/ClientApp/src/app/http/mock/timeline.ts index 0330b303..27addd61 100644 --- a/Timeline/ClientApp/src/app/http/mock/timeline.ts +++ b/Timeline/ClientApp/src/app/http/mock/timeline.ts @@ -49,7 +49,9 @@ function getTimelinePropertyValue( name: string, property: TimelinePropertyKey ): Promise { - return mockStorage.getItem(getTimelinePropertyKey(name, property)); + return mockStorage.getItem( + getTimelinePropertyKey(name, property) + ) as Promise; } function setTimelinePropertyValue( @@ -187,7 +189,7 @@ function getTimelinePostPropertyValue( ): Promise { return mockStorage.getItem( getTimelinePostPropertyKey(timelineName, id, propertyKey) - ); + ) as Promise; } function setTimelinePostPropertyValue( -- cgit v1.2.3