Skip to content

Commit

Permalink
#113 fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-serb committed Apr 30, 2024
1 parent d587ac3 commit 6675984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/useGamepadsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const useGamepadsStore = defineStore('gamepads', () => {
* @description Запускает слушатели событий для добавления и удаления геймпадов,
* а также, их обновления.
*/
function initialize() {
function initialize(): void {
_addEventListeners();
_interval.value = window.setInterval(_updateTimestamp, 1);
}
Expand All @@ -172,7 +172,7 @@ export const useGamepadsStore = defineStore('gamepads', () => {
* @description Удаляет слушатели событий для добавления и удаления геймпадов,
* а также, их обновления.
*/
function terminate() {
function terminate(): void {
_removeEventListeners();
_interval.value = window.setInterval(_updateTimestamp, 1);
}
Expand Down

0 comments on commit 6675984

Please sign in to comment.