Skip to content

Commit

Permalink
Fix TS generics on new Google Picker plugins (#5550)
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon authored Dec 16, 2024
1 parent 5f7599c commit 54ad2c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions packages/@uppy/google-drive-picker/src/GoogleDrivePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 54ad2c7

Please sign in to comment.