Initial commit
This commit is contained in:
22
shared/types/file.ts
Normal file
22
shared/types/file.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user