From 0e4592331cce5e67e616e8c8384d0ddd123cc125 Mon Sep 17 00:00:00 2001 From: tkachi Date: Mon, 19 Nov 2018 16:33:40 +0000 Subject: [PATCH] Update events option in types/jquery.contextmenu/index.d.ts (#30372) * Update index.d.ts The events show/hide options allow options to be passed and may return false to prevent the event occurring * Update index.d.ts --- types/jquery.contextmenu/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/jquery.contextmenu/index.d.ts b/types/jquery.contextmenu/index.d.ts index 5e449a96ff..a74f5cbbd7 100644 --- a/types/jquery.contextmenu/index.d.ts +++ b/types/jquery.contextmenu/index.d.ts @@ -22,8 +22,8 @@ interface JQueryContextMenuOptions { hide?: string; }; events?: { - show?: () => void; - hide?: () => void; + show?: (options: any) => boolean; + hide?: (options: any) => boolean; }; callback?: (key: any, options: any) => any; items?: any;