Refactor sequence matching to require an item rather than array of words to filter against

This commit is contained in:
Donnie 2021-04-06 13:04:44 -07:00
parent 0de3f3a332
commit cfbfdda011

View File

@ -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;
} }