From 1a160ad28b0cd3cb0d66e545c778158de375658a Mon Sep 17 00:00:00 2001 From: David J Pfeiffer Date: Thu, 14 Nov 2019 15:57:15 -0800 Subject: [PATCH] Remove JS Doc comments that blow up in TypeScript 2.9.2 from index.js --- index.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/index.js b/index.js index 9dc7ce1..74ea83c 100644 --- a/index.js +++ b/index.js @@ -65,12 +65,6 @@ keyCode.isEventKey = function isEventKey(event, nameOrCode) { exports = module.exports = keyCode; -/** - * Get by name - * - * exports.code['enter'] // => 13 - */ - var codes = exports.code = exports.codes = { 'backspace': 8, 'tab': 9, @@ -158,12 +152,6 @@ for (i = 1; i < 13; i++) codes['f'+i] = i + 111 // numpad keys for (i = 0; i < 10; i++) codes['numpad '+i] = i + 96 -/** - * Get by code - * - * exports.name[13] // => 'Enter' - */ - var names = exports.names = exports.title = {} // title for backward compat // Create reverse mapping