```typescript export interface UploadButtonProps { onSelect?: (f: FileList | File[]) => any; accept?: string; multiple?: boolean; limit?: number; sizeLimit?: number; onError?: (msg: any) => any; } ```
npm install @reacted/use-file-select``typescript`
export interface UploadButtonProps {
onSelect?: (f: FileList | File[]) => any;
accept?: string;
multiple?: boolean;
limit?: number;
sizeLimit?: number;
onError?: (msg: any) => any;
}
* A valid case-insensitive filename extension, starting with a period (".") character. For example: .jpg, .pdf, or .doc.
* A valid MIME type string, with no extensions.
The string audio/ meaning "any audio file".
The string video/ meaning "any video file".
The string image/ meaning "any image file".
`ts
export interface MsgType {
overSize: number
}
export const msgType {
overSize: 1
}
``