mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-04 06:57:47 +00:00
Refactor sequence matching to require an item rather than array of words to filter against
This commit is contained in:
parent
0de3f3a332
commit
cfbfdda011
@ -74,6 +74,10 @@ const isCommandItem = (item: QuickBarItem): item is CommandItem => {
|
|||||||
return (item as CommandItem).categoryKey !== undefined;
|
return (item as CommandItem).categoryKey !== undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const isEntityItem = (item: QuickBarItem): item is EntityItem => {
|
||||||
|
return !isCommandItem(item);
|
||||||
|
};
|
||||||
|
|
||||||
interface QuickBarNavigationItem extends CommandItem {
|
interface QuickBarNavigationItem extends CommandItem {
|
||||||
path: string;
|
path: string;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user