Files
XCDesktop/shared/types/file.ts

23 lines
339 B
TypeScript
Raw Normal View History

2026-03-08 01:34:54 +08:00
export type FileKind = 'file' | 'dir'
export interface FileItemDTO {
name: string
type: FileKind
size: number
modified: string
path: string
}
export interface FileContentDTO {
content: string
metadata: {
size: number
modified: string
}
}
export type PathExistsDTO = {
exists: boolean
type: FileKind | null
}