File size: 624 Bytes
d320567
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import type { FileData } from "@gradio/client";
import type { LoadingStatus } from "js/statustracker";
import type { SelectData } from "@gradio/utils";

export interface FileProps {
	value: FileData | FileData[] | null;
	file_types: string[];
	file_count: "single" | "multiple" | "directory";
	allow_reordering: boolean;
	type: "filepath" | "binary";
	_selectable: boolean;
	height: number | null;
}

export interface FileEvents {
	upload: FileData | FileData[];
	download: void;
	error: string;
	clear_status: LoadingStatus;
	clear: void;
	select: SelectData | null;
	change: FileData | FileData[] | null;
	delete: void;
}