export type Item = { isDir: boolean; extension: string | null; path: string; name: string; depth: number; id: number; } export type Items = Item[] export type Tree = { id: number; name: string; children?: Tree[]; };