浏览代码

Fix TS generics on new Google Picker plugins (#5550)

Merlijn Vos 4 月之前
父节点
当前提交
54ad2c7426

+ 1 - 4
packages/@uppy/google-drive-picker/src/GoogleDrivePicker.tsx

@@ -23,10 +23,7 @@ export type GoogleDrivePickerOptions = CompanionPluginOptions & {
   appId: string
 }
 
-export default class GoogleDrivePicker<
-    M extends Meta & { width: number; height: number },
-    B extends Body,
-  >
+export default class GoogleDrivePicker<M extends Meta, B extends Body>
   extends UIPlugin<GoogleDrivePickerOptions, M, B>
   implements BaseProviderPlugin
 {

+ 1 - 4
packages/@uppy/google-photos-picker/src/GooglePhotosPicker.tsx

@@ -21,10 +21,7 @@ export type GooglePhotosPickerOptions = CompanionPluginOptions & {
   clientId: string
 }
 
-export default class GooglePhotosPicker<
-    M extends Meta & { width: number; height: number },
-    B extends Body,
-  >
+export default class GooglePhotosPicker<M extends Meta, B extends Body>
   extends UIPlugin<GooglePhotosPickerOptions, M, B>
   implements BaseProviderPlugin
 {