clean up types removing string array parameter

pull/5370/head
Joseph Izang 7 months ago
parent cd27326459
commit ef35ea21b4
  1. 10
      libs/remix-ui/workspace/src/lib/types/index.ts

@ -346,16 +346,18 @@ export type Actions = {[A in keyof ActionPayloadTypes]: Action<A>}[keyof ActionP
export type WorkspaceElement = 'folder' | 'file' | 'workspace' export type WorkspaceElement = 'folder' | 'file' | 'workspace'
export interface FlatTreeDropProps { export interface FlatTreeDropProps {
moveFile: (dest: string, src: string[]) => void moveFile: (dest: string, src: string) => void
moveFolder: (dest: string, src: string[]) => void moveFolder: (dest: string, src: string) => void
moveFolderSilently: (dest: string, src: string[]) => Promise<void> moveFolderSilently: (dest: string, src: string) => Promise<void>
moveFileSilently: (dest: string, src: string[]) => Promise<void> moveFileSilently: (dest: string, src: string) => Promise<void>
setFilesSelected: Dispatch<React.SetStateAction<string[]>> setFilesSelected: Dispatch<React.SetStateAction<string[]>>
getFlatTreeItem: (path: string) => FileType getFlatTreeItem: (path: string) => FileType
handleClickFolder: (path: string, type: string) => void handleClickFolder: (path: string, type: string) => void
dragSource: FileType dragSource: FileType
children: React.ReactNode children: React.ReactNode
expandPath: string[] expandPath: string[]
selectedItems: DragStructure[]
setSelectedItems: Dispatch<React.SetStateAction<DragStructure[]>>
} }
export type DragStructure = { export type DragStructure = {

Loading…
Cancel
Save