diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/core-utils/common/promises.ts | 4 |
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 @@ | |||
1 | function isPromise (value: any) { | 1 | function 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 | ||
5 | function isCatchable (value: any) { | 5 | function isCatchable (value: any) { |