Extend tag element definition to avoid some cast (#34)
This commit is contained in:
+8
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user