diff --git a/types/prosemirror-view/index.d.ts b/types/prosemirror-view/index.d.ts index 444271ec52..727700f3ab 100644 --- a/types/prosemirror-view/index.d.ts +++ b/types/prosemirror-view/index.d.ts @@ -474,7 +474,7 @@ export interface EditorProps { * pasted content parsed by the editor, but you can directly access * the event to get at the raw content. */ - handlePaste?: ((view: EditorView, event: Event, slice: Slice) => boolean) | null; + handlePaste?: ((view: EditorView, event: ClipboardEvent, slice: Slice) => boolean) | null; /** * Called when something is dropped on the editor. `moved` will be * true if this drop moves from the current selection (which should