Update typescript to v5, as well as eslint and typescript-eslint
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user