UNPKG
@editorjs/image
Version:
latest (2.10.3)
2.10.3
2.10.2
2.10.1
2.10.0
2.9.3
2.9.2
2.9.1
2.9.0
2.8.2
2.8.1
2.8.0
2.7.1
2.7.0
2.6.2
2.6.1
2.6.0
2.5.0
2.4.2
2.4.1
2.4.0
2.3.5
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.0
2.1.2
2.1.1
2.1.0
Image Tool for Editor.js
editor-js/image
@editorjs/image
/
dist
/
utils
/
isPromise.d.ts
9 lines
(7 loc)
•
266 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
UploadResponseFormat
}
from
'../types/types'
;
/** * Check if passed object is a Promise *
@param
object
- object to check *
@returns
*/
export
default
function
isPromise
(
object:
Promise
<UploadResponseFormat>
): object is
Promise
<
UploadResponseFormat
>;