Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): make UploadcareFile instance properties non-nullable cause they're can't be null actually #529

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading