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:
Daniel Söderling
2023-02-20 03:02:37 +01:00
committed by GitHub
parent ab27b1bfd1
commit 79d047e64f
4 changed files with 4 additions and 4 deletions

View File

@@ -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
}