Skip to content

Commit

Permalink
fix(types): make UploadcareFile instance properties non-nullable ca…
Browse files Browse the repository at this point in the history
…use they're can't be `null` actually
  • Loading branch information
nd0ut committed Oct 16, 2024
1 parent af45091 commit 66d2a54
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/upload-client/src/tools/UploadcareFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 66d2a54

Please sign in to comment.