aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils/common
diff options
context:
space:
mode:
Diffstat (limited to 'shared/core-utils/common')
-rw-r--r--shared/core-utils/common/promises.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/core-utils/common/promises.ts b/shared/core-utils/common/promises.ts
index dc0db9074..f17221b97 100644
--- a/shared/core-utils/common/promises.ts
+++ b/shared/core-utils/common/promises.ts
@@ -1,5 +1,5 @@
1function isPromise (value: any) { 1function isPromise <T = unknown> (value: T | Promise<T>): value is Promise<T> {
2 return value && typeof value.then === 'function' 2 return value && typeof (value as Promise<T>).then === 'function'
3} 3}
4 4
5function isCatchable (value: any) { 5function isCatchable (value: any) {