Description
At line 703 in MyFiles.tsx, an object literal passes a folderId property that does not exist in the expected type definition. This causes a TypeScript error and indicates a type mismatch between the upload payload and the defined interface.
Error
Object literal may only specify known properties, and 'folderId' does not exist in type
'{ fileName: string; fileUrl: string; fileType?: string | undefined; fileSize?: string | undefined; fileSizeBytes?: number | undefined; checksum?: string | undefined; }'.
ts(2353) - Line 703
File
client/src/components/Home/MyFiles.tsx
Steps to Reproduce
- Open
client/src/components/Home/MyFiles.tsx in VS Code
- TypeScript will highlight line 703 with the error
Expected Behaviour
Either the type definition should include folderId as an optional property, or the folderId property should be removed from the object literal if it is not needed.
Description
At line 703 in
MyFiles.tsx, an object literal passes afolderIdproperty that does not exist in the expected type definition. This causes a TypeScript error and indicates a type mismatch between the upload payload and the defined interface.Error
Object literal may only specify known properties, and 'folderId' does not exist in type
'{ fileName: string; fileUrl: string; fileType?: string | undefined; fileSize?: string | undefined; fileSizeBytes?: number | undefined; checksum?: string | undefined; }'.
ts(2353) - Line 703
File
client/src/components/Home/MyFiles.tsxSteps to Reproduce
client/src/components/Home/MyFiles.tsxin VS CodeExpected Behaviour
Either the type definition should include
folderIdas an optional property, or thefolderIdproperty should be removed from the object literal if it is not needed.