diff options
author | crupest <crupest@outlook.com> | 2020-08-25 00:02:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-25 00:02:44 +0800 |
commit | 86e22ca4fb7dceec43a528bd250bcda2a0133421 (patch) | |
tree | 07ae296c0c684fd81b30763ef9d6d27421de30b3 | |
parent | f16f580f206156f7b936759943479252469f2f22 (diff) | |
download | timeline-86e22ca4fb7dceec43a528bd250bcda2a0133421.tar.gz timeline-86e22ca4fb7dceec43a528bd250bcda2a0133421.tar.bz2 timeline-86e22ca4fb7dceec43a528bd250bcda2a0133421.zip |
Fix type errors.
-rw-r--r-- | Timeline/ClientApp/src/app/http/mock/timeline.ts | 6 |
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>( |