fix: sizes property optional on upload (#2066)
* omit 'sizes' when uploading files from the inferred collection type * cleanup * optional sizes on create and update, instead of omitted
This commit is contained in:
@@ -7,7 +7,7 @@ import { Collection } from '../../collections/config/types';
|
||||
|
||||
export type Arguments<T extends { [field: string | number | symbol]: unknown }> = {
|
||||
collection: Collection
|
||||
data: MarkOptional<T, 'id' | 'updatedAt' | 'createdAt'> & {
|
||||
data: MarkOptional<T, 'id' | 'updatedAt' | 'createdAt' | 'sizes'> & {
|
||||
email: string
|
||||
password: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user