mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-25 02:18:34 -04:00
* backend rename complete * finalize Object refactor frontend + remove some exhaustive dep suppression + FIX INVALIDATE QUERY BUG
10 lines
313 B
TypeScript
10 lines
313 B
TypeScript
import { ExplorerItem, FilePath } from '@sd/client';
|
|
|
|
export function isPath(item: ExplorerItem): item is Extract<ExplorerItem, { type: 'Path' }> {
|
|
return item.type === 'Path';
|
|
}
|
|
|
|
export function isObject(item: ExplorerItem): item is Extract<ExplorerItem, { type: 'Object' }> {
|
|
return item.type === 'Object';
|
|
}
|