Refactor media classifiers.

This commit is contained in:
Dermot Duffy
2023-01-24 19:36:54 -08:00
parent 0f5f5b7ddf
commit 1762b5530f
9 changed files with 115 additions and 174 deletions
+1 -3
View File
@@ -5,11 +5,9 @@ import format from 'date-fns/format';
import isEqual from 'lodash-es/isEqual';
import { FrigateCardError } from '../types';
export type ModifyInterface<T, R> = Omit<T, keyof R> & R;
/**
* Dispatch a Frigate Card event.
* @param element The element to send the event.
* @param target The target from which send the event.
* @param name The name of the Frigate card event to send.
* @param detail An optional detail object to attach.
*/