mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-20 16:53:33 +00:00
Fixes: https://github.com/transloadit/uppy/pull/5061#issuecomment-2188717555 Also change the type of `UppyFile.name`, because it can be `undefined`.
35 lines
672 B
TypeScript
35 lines
672 B
TypeScript
/**
|
|
* CompanionFile represents a file object returned by the Companion API.
|
|
*/
|
|
export type CompanionFile = {
|
|
id: string
|
|
name?: string
|
|
/*
|
|
* Url to the thumbnail icon
|
|
*/
|
|
icon: string
|
|
type: string
|
|
mimeType: string
|
|
extension: string
|
|
size: number
|
|
isFolder: boolean
|
|
modifiedDate: string
|
|
thumbnail?: string
|
|
requestPath: string
|
|
relDirPath?: string
|
|
absDirPath?: string
|
|
author?: {
|
|
name?: string
|
|
url?: string
|
|
}
|
|
custom?: {
|
|
isSharedDrive: boolean
|
|
imageHeight: number
|
|
imageWidth: number
|
|
imageRotation: number
|
|
imageDateTime: string
|
|
videoHeight: number
|
|
videoWidth: number
|
|
videoDurationMillis: number
|
|
}
|
|
}
|