aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/data/common.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-10 16:56:09 +0800
committercrupest <crupest@outlook.com>2020-08-10 16:56:09 +0800
commit9bd53ad844b66f14080f3a142a419fed1d8bd491 (patch)
treed2b0380902f2cf4f7ab58f6cd4cec931ffd24dc0 /Timeline/ClientApp/src/app/data/common.ts
parente1b260e3e04341703944a9c1167c2546ff514fb9 (diff)
downloadtimeline-9bd53ad844b66f14080f3a142a419fed1d8bd491.tar.gz
timeline-9bd53ad844b66f14080f3a142a419fed1d8bd491.tar.bz2
timeline-9bd53ad844b66f14080f3a142a419fed1d8bd491.zip
Do not block when get post data.
Diffstat (limited to 'Timeline/ClientApp/src/app/data/common.ts')
-rw-r--r--Timeline/ClientApp/src/app/data/common.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/Timeline/ClientApp/src/app/data/common.ts b/Timeline/ClientApp/src/app/data/common.ts
index 35934a29..87984e21 100644
--- a/Timeline/ClientApp/src/app/data/common.ts
+++ b/Timeline/ClientApp/src/app/data/common.ts
@@ -19,3 +19,5 @@ export function throwIfNotNetworkError(e: unknown): void {
throw e;
}
}
+
+export type BlobOrStatus = Blob | 'loading' | 'error';