Skip to content

Commit 57c84a4

Browse files
authored
fix(types): make UploadcareFile instance properties non-nullable cause they're can't be null actually (#529)
Co-authored-by: nd0ut <[email protected]>
1 parent af45091 commit 57c84a4

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

packages/upload-client/src/tools/UploadcareFile.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ function isGroupFileInfo(
1515
}
1616
export class UploadcareFile {
1717
readonly uuid: Uuid
18-
readonly name: null | string = null
19-
readonly size: null | number = null
20-
readonly isStored: null | boolean = null
21-
readonly isImage: null | boolean = null
22-
readonly mimeType: null | string = null
23-
readonly cdnUrl: null | string = null
24-
readonly s3Url: null | string = null
25-
readonly originalFilename: null | string = null
26-
readonly imageInfo: null | ImageInfo = null
27-
readonly videoInfo: null | VideoInfo = null
28-
readonly contentInfo: null | ContentInfo = null
29-
readonly metadata: null | Metadata = null
30-
readonly s3Bucket: null | string = null
18+
readonly name: string
19+
readonly size: number
20+
readonly isStored: boolean
21+
readonly isImage: boolean
22+
readonly mimeType: string
23+
readonly cdnUrl: string
24+
readonly s3Url: string | null
25+
readonly originalFilename: string
26+
readonly imageInfo: ImageInfo | null
27+
readonly videoInfo: VideoInfo | null
28+
readonly contentInfo: ContentInfo | null
29+
readonly metadata: Metadata | null
30+
readonly s3Bucket: string | null
3131
readonly defaultEffects: null | string = null
3232

3333
constructor(

0 commit comments

Comments
 (0)