Extend tag element definition to avoid some cast (#34)

This commit is contained in:
Jérôme Steunou
2020-10-20 21:12:54 -05:00
committed by GitHub
parent 396e90b451
commit 55a5fdede6
2 changed files with 10 additions and 4 deletions
+8 -1
View File
@@ -1,4 +1,11 @@
import { ActionConfig, LovelaceCardConfig } from 'custom-card-helpers';
import { ActionConfig, LovelaceCard, LovelaceCardConfig, LovelaceCardEditor } from 'custom-card-helpers';
declare global {
interface HTMLElementTagNameMap {
'boilerplate-card-editor': LovelaceCardEditor;
'hui-error-card': LovelaceCard;
}
}
// TODO Add your configuration elements here for type-checking
export interface BoilerplateCardConfig extends LovelaceCardConfig {