From 948f0629b2cfc28db174feb4ba5da1d28a4de863 Mon Sep 17 00:00:00 2001 From: David Asmuth Date: Mon, 11 Jan 2016 15:06:54 +0100 Subject: [PATCH] added old author; grammatical corrections, stop() now returns void instead of any --- keyboardjs/keyboardjs.d.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/keyboardjs/keyboardjs.d.ts b/keyboardjs/keyboardjs.d.ts index 6a5c10f96..0d6783ee8 100644 --- a/keyboardjs/keyboardjs.d.ts +++ b/keyboardjs/keyboardjs.d.ts @@ -1,6 +1,7 @@ // Type definitions for KeyboardJS v2.2.0 // Project: https://github.com/RobertWHurst/KeyboardJS -// Definitions by: David Asmuth +// Definitions by: Vincent Bortone , +// David Asmuth // Definitions: https://github.com/borisyankov/DefinitelyTyped // KeyboardJS is a library for use in the browser (node.js compatible). @@ -36,14 +37,14 @@ declare module keyboardjs { /** * Binds a keyCombo to specific callback functions. * @param keyCombo String of keys to be pressed to execute callbacks. - * @param pressed Callback that gets execute when the keyCombostate is 'pressed', can be null. - * @param released Callback that gets execute when the keyCombostate is 'released' + * @param pressed Callback that gets executed when the keyComboState is 'pressed', can be null. + * @param released Callback that gets executed when the keyComboState is 'released' */ export function bind(keyCombo: string, pressed: Callback, released: Callback): void; /** * Binds a keyCombo to specific callback functions. * @param keyCombo String of keys to be pressed to execute callbacks. - * @param pressed Callback that gets executed when the keyCombostate is 'pressed' + * @param pressed Callback that gets executed when the keyComboState is 'pressed' */ export function bind(keyCombo: string, pressed: Callback): void; @@ -125,9 +126,9 @@ declare module keyboardjs { export function watch(): void; /** - * Detaches KeyboardJS from the window and documant/element + * Detaches KeyboardJS from the window and document/element */ - export function stop(); + export function stop(): void; } declare module 'keyboardjs' {