Clean lit-plugin warnings

This commit is contained in:
Dermot Duffy
2022-06-19 07:30:08 +00:00
parent 2027d32e7f
commit ffa31c05ed
28 changed files with 464 additions and 552 deletions
+8
View File
@@ -14,6 +14,8 @@ import { customElement } from 'lit/decorators.js';
import { query } from 'lit/decorators/query.js';
import { FrigateCardMediaPlayer } from '../types.js';
import { dispatchMediaShowEvent } from '../utils/media-info.js';
import "./ha-hls-player";
import "./ha-web-rtc-player";
customElements.whenDefined('ha-camera-stream').then(() => {
// ========================================================================================
@@ -151,3 +153,9 @@ customElements.whenDefined('ha-camera-stream').then(() => {
}
}
});
declare global {
interface HTMLElementTagNameMap {
"frigate-card-ha-camera-stream": FrigateCardHaCameraStream
}
}
+6
View File
@@ -109,3 +109,9 @@ customElements.whenDefined('ha-hls-player').then(() => {
}
}
});
declare global {
interface HTMLElementTagNameMap {
"frigate-card-ha-hls-player": FrigateCardHaHlsPlayer
}
}
+6
View File
@@ -93,3 +93,9 @@ customElements.whenDefined('ha-web-rtc-player').then(() => {
}
}
});
declare global {
interface HTMLElementTagNameMap {
'frigate-card-ha-web-rtc-player': FrigateCardHaWebRtcPlayer;
}
}