Deprecate char, charCode and keyCode in jquery/legacy.d.ts.

While the object itself is deprectade, it can be good to deprecate the properties aswell.
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/31303#discussion_r243018492
This commit is contained in:
Oscar Busk
2018-12-19 22:09:54 +01:00
parent e84be5f370
commit 9994b088c4
+3
View File
@@ -167,9 +167,12 @@ interface JQueryMouseEventObject extends JQueryInputEventObject {
* @deprecated ​ Deprecated. Use \`{@link JQuery.Event }\`.
*/
interface JQueryKeyEventObject extends JQueryInputEventObject {
/** @deprecated */
char: string;
/** @deprecated */
charCode: number;
key: string;
/** @deprecated */
keyCode: number;
}
/**