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
+11 -8
View File
@@ -1,14 +1,14 @@
import { fireEvent } from 'custom-card-helpers';
import type {
ActionHandlerDetail,
ActionHandlerOptions
ActionHandlerOptions,
} from 'custom-card-helpers/dist/types.d.js';
import { noChange } from 'lit';
import {
AttributePart,
directive,
Directive,
DirectiveParameters
DirectiveParameters,
} from 'lit/directive.js';
import { stopEventFromActivatingCardWideActions } from './utils/action.js';
@@ -20,12 +20,6 @@ interface ActionHandlerElement extends HTMLElement {
actionHandlerOptions?: FrigateCardActionHandlerOptions;
}
declare global {
interface HASSDomEvents {
action: ActionHandlerDetail;
}
}
interface FrigateCardActionHandlerOptions extends ActionHandlerOptions {
allowPropagation?: boolean;
}
@@ -196,3 +190,12 @@ export const actionHandler = directive(
render(_options?: FrigateCardActionHandlerOptions) {}
},
);
declare global {
interface HTMLElementTagNameMap {
'action-handler-frigate-card': ActionHandler;
}
interface HASSDomEvents {
action: ActionHandlerDetail;
}
}