Skip to content

Commit

Permalink
v1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
CarcajadaArtificial committed Oct 22, 2024
1 parent d8c8b8f commit ce48c9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
- Event throttling/debouncing.
- Key hold detection.

## v1.0.6

- Added a fix to an explict return error.

## v1.0.5

- Added the type `CheckKeypress` to represent the function.
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carcajada/teclas",
"version": "1.0.5",
"version": "1.0.6",
"exports": "./mod.ts",
"tasks": {
"dev": "deno run --watch main.ts"
Expand Down
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export type CheckKeypress = (ev: Event) => boolean;
* @returns {boolean}
* True if the keystroke combination is detected, false otherwise.
*/
export const checkKeystroke = (keystroke: iKeystroke, ev: Event) =>
export const checkKeystroke = (keystroke: iKeystroke, ev: Event): boolean =>
keystroke.keys.reduce<boolean>(
(accumulator, currentValue) => accumulator && currentValue(ev),
true,
Expand Down

0 comments on commit ce48c9e

Please sign in to comment.