diff --git a/packages/@uppy/image-editor/types/index.d.ts b/packages/@uppy/image-editor/types/index.d.ts index c8eace6bd0..e8b805f3f7 100644 --- a/packages/@uppy/image-editor/types/index.d.ts +++ b/packages/@uppy/image-editor/types/index.d.ts @@ -1,4 +1,4 @@ -import type { PluginOptions, UIPlugin, PluginTarget, UppyFile } from '@uppy/core' +import type { PluginOptions, UIPlugin, PluginTarget, UppyFile, IndexedObject } from '@uppy/core' import type Cropper from 'cropperjs' import ImageEditorLocale from './generatedLocale' @@ -32,12 +32,12 @@ export default ImageEditor // Events -export type FileEditorStartCallback = (file: UppyFile) => void; -export type FileEditorCompleteCallback = (updatedFile: UppyFile) => void; -export type FileEditorCancelCallback = (file: UppyFile) => void; +export type FileEditorStartCallback> = (file: UppyFile) => void; +export type FileEditorCompleteCallback> = (updatedFile: UppyFile) => void; +export type FileEditorCancelCallback> = (file: UppyFile) => void; declare module '@uppy/core' { - export interface UppyEventMap { + export interface UppyEventMap> { 'file-editor:start' : FileEditorStartCallback 'file-editor:complete': FileEditorCompleteCallback 'file-editor:cancel': FileEditorCancelCallback