mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
18 lines
414 B
TypeScript
18 lines
414 B
TypeScript
|
|
import type { Id } from "../_generated/dataModel"
|
||
|
|
|
||
|
|
export type DirectoryPathComponent = {
|
||
|
|
id: Id<"directories">
|
||
|
|
name: string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type FilePathComponent = {
|
||
|
|
id: Id<"files">
|
||
|
|
name: string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type PathComponent = FilePathComponent | DirectoryPathComponent
|
||
|
|
|
||
|
|
export type FilePath = [...DirectoryPathComponent[], PathComponent]
|
||
|
|
|
||
|
|
export type ReverseFilePath = [PathComponent, ...DirectoryPathComponent[]]
|