Update typescript to v5, as well as eslint and typescript-eslint

This commit is contained in:
Felipe Santos
2024-06-06 00:20:03 -03:00
parent 3d6115a2ba
commit 289618d40a
4 changed files with 138 additions and 143 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ import {
import { stopEventFromActivatingCardWideActions } from './utils/action.js';
import { Timer } from './utils/timer.js';
interface ActionHandler extends HTMLElement {
interface ActionHandlerInterface extends HTMLElement {
holdTime: number;
bind(element: Element, options): void;
}
@@ -25,7 +25,7 @@ interface FrigateCardActionHandlerOptions extends ActionHandlerOptions {
allowPropagation?: boolean;
}
class ActionHandler extends HTMLElement implements ActionHandler {
class ActionHandler extends HTMLElement implements ActionHandlerInterface {
public holdTime = 0.4;
protected holdTimer = new Timer();
@@ -56,7 +56,7 @@ class ActionHandler extends HTMLElement implements ActionHandler {
public bind(
element: ActionHandlerElement,
options: FrigateCardActionHandlerOptions,
options?: FrigateCardActionHandlerOptions,
): void {
if (element.actionHandlerOptions) {
// Reset the options on an existing actionHandler.
+1 -1
View File
@@ -6,7 +6,7 @@ import { CameraConfig } from '../../config/types';
import { localize } from '../../localize/localize';
import '../../patches/ha-camera-stream';
import '../../patches/ha-hls-player.js';
import '../../patches/ha-web-rtc-player.ts';
import '../../patches/ha-web-rtc-player.js';
import liveHAStyle from '../../scss/live-ha.scss';
import { FrigateCardMediaPlayer } from '../../types.js';
import { renderMessage } from '../message';