From cc4eacc437dcdea5c528cc88762ba3783b998e52 Mon Sep 17 00:00:00 2001 From: oBusk Date: Wed, 12 Dec 2018 13:10:41 +0100 Subject: [PATCH] Add `@deprecated` to `which` --- types/jquery/v2/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/jquery/v2/index.d.ts b/types/jquery/v2/index.d.ts index 10239b07cb..2643960e6d 100644 --- a/types/jquery/v2/index.d.ts +++ b/types/jquery/v2/index.d.ts @@ -592,6 +592,7 @@ interface BaseJQueryEventObject extends Event { pageY: number; /** * For key or mouse events, this property indicates the specific key or button that was pressed. + * @deprecated Use `key` for KeyEvents or `button` for MouseEvents instead. * @see {@link https://api.jquery.com/event.which/} */ which: number;