Pārlūkot izejas kodu

Reverted changes for AddFileOptions

Dirk-Jan Wassink 6 gadi atpakaļ
vecāks
revīzija
00db753dbd
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      packages/@uppy/core/types/index.d.ts

+ 1 - 3
packages/@uppy/core/types/index.d.ts

@@ -40,9 +40,7 @@ export interface FailedUppyFile<TMeta extends IndexedObject<any> = {}> extends U
 }
 
 export interface AddFileOptions extends Partial<UppyFile> {
-  // `data` `name` and `type` are the only required properties here.
-  name: string;
-  type: string;
+  // `.data` is the only required property here.
   data: Blob | File;
 }