aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-25 00:02:44 +0800
committercrupest <crupest@outlook.com>2020-08-25 00:02:44 +0800
commitfe687f82d9c5af2869b679222bec11b1a00b9ee9 (patch)
tree034b470eff54a9f725cd9e472966cf554cd2ee26
parentd430d867252f7016591adc49f4be1483cb6dfef0 (diff)
downloadtimeline-fe687f82d9c5af2869b679222bec11b1a00b9ee9.tar.gz
timeline-fe687f82d9c5af2869b679222bec11b1a00b9ee9.tar.bz2
timeline-fe687f82d9c5af2869b679222bec11b1a00b9ee9.zip
Fix type errors.
-rw-r--r--Timeline/ClientApp/src/app/http/mock/timeline.ts6
1 files changed, 4 insertions, 2 deletions
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<T>(
name: string,
property: TimelinePropertyKey
): Promise<T> {
- return mockStorage.getItem<T>(getTimelinePropertyKey(name, property));
+ return mockStorage.getItem<T>(
+ getTimelinePropertyKey(name, property)
+ ) as Promise<T>;
}
function setTimelinePropertyValue<T>(
@@ -187,7 +189,7 @@ function getTimelinePostPropertyValue<T>(
): Promise<T> {
return mockStorage.getItem<T>(
getTimelinePostPropertyKey(timelineName, id, propertyKey)
- );
+ ) as Promise<T>;
}
function setTimelinePostPropertyValue<T>(