From 57c84a4f360ca86b0084cdac2cd08da0a4127a6e Mon Sep 17 00:00:00 2001 From: Aleksandr Grenishin Date: Wed, 16 Oct 2024 17:03:02 +0300 Subject: [PATCH] fix(types): make `UploadcareFile` instance properties non-nullable cause they're can't be `null` actually (#529) Co-authored-by: nd0ut --- .../upload-client/src/tools/UploadcareFile.ts | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/upload-client/src/tools/UploadcareFile.ts b/packages/upload-client/src/tools/UploadcareFile.ts index 0f3737f48..f88078481 100644 --- a/packages/upload-client/src/tools/UploadcareFile.ts +++ b/packages/upload-client/src/tools/UploadcareFile.ts @@ -15,19 +15,19 @@ function isGroupFileInfo( } export class UploadcareFile { readonly uuid: Uuid - readonly name: null | string = null - readonly size: null | number = null - readonly isStored: null | boolean = null - readonly isImage: null | boolean = null - readonly mimeType: null | string = null - readonly cdnUrl: null | string = null - readonly s3Url: null | string = null - readonly originalFilename: null | string = null - readonly imageInfo: null | ImageInfo = null - readonly videoInfo: null | VideoInfo = null - readonly contentInfo: null | ContentInfo = null - readonly metadata: null | Metadata = null - readonly s3Bucket: null | string = null + readonly name: string + readonly size: number + readonly isStored: boolean + readonly isImage: boolean + readonly mimeType: string + readonly cdnUrl: string + readonly s3Url: string | null + readonly originalFilename: string + readonly imageInfo: ImageInfo | null + readonly videoInfo: VideoInfo | null + readonly contentInfo: ContentInfo | null + readonly metadata: Metadata | null + readonly s3Bucket: string | null readonly defaultEffects: null | string = null constructor(