Set timeline to now not to most recent event.
This commit is contained in:
@@ -269,6 +269,36 @@ export class View {
|
||||
}
|
||||
}
|
||||
|
||||
// Facilitates correct typing of event handlers.
|
||||
export interface FrigateCardViewChangeEventTarget extends EventTarget {
|
||||
addEventListener(
|
||||
event: 'frigate-card:view:change',
|
||||
listener: (
|
||||
this: FrigateCardViewChangeEventTarget,
|
||||
ev: CustomEvent<View>,
|
||||
) => void,
|
||||
options?: AddEventListenerOptions | boolean,
|
||||
): void;
|
||||
addEventListener(
|
||||
type: string,
|
||||
callback: EventListenerOrEventListenerObject,
|
||||
options?: AddEventListenerOptions | boolean,
|
||||
): void;
|
||||
removeEventListener(
|
||||
event: 'frigate-card:view:change',
|
||||
listener: (
|
||||
this: FrigateCardViewChangeEventTarget,
|
||||
ev: CustomEvent<View>,
|
||||
) => void,
|
||||
options?: boolean | EventListenerOptions,
|
||||
): void;
|
||||
removeEventListener(
|
||||
type: string,
|
||||
callback: EventListenerOrEventListenerObject,
|
||||
options?: boolean | EventListenerOptions,
|
||||
): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dispatch an event to change the view context.
|
||||
* @param target The EventTarget to send the event from.
|
||||
|
||||
Reference in New Issue
Block a user