UNPKG
@sanity/media-library-types
Version:
alpha (0.0.2)
latest (1.6.0)
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.2
1.0.1
1.0.0
0.0.2
0.0.1
Type definitions for common Sanity Media Library data structures
www.sanity.io
@sanity/media-library-types
/
src
/
files.ts
13 lines
(11 loc)
•
258 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
type
FileStatus
=
'pending'
|
'uploading'
|
'complete'
|
'error'
/** * Wrapper object for the file upload with progress and status */
export
interface
FileUpload
{
id
:
string
file
:
File
status
:
FileStatus
progress
:
number
error
?:
Error
}