From 26fb8aa1a6f1ac6eda00b752dddff6e79eb2e825 Mon Sep 17 00:00:00 2001 From: Max Lever Date: Tue, 14 Apr 2020 23:35:06 -0400 Subject: [PATCH] clarify type of handlePaste event arg (#43904) --- types/prosemirror-view/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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