forked from RobinYang11/goji
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69ae1b9
commit 6b05a07
Showing
15 changed files
with
113 additions
and
34 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
/// <reference types="react" /> | ||
interface IUploadProps { | ||
url: string; | ||
import React, { ReactNode } from 'react'; | ||
export interface UploadFile { | ||
lastModified: number; | ||
name: string; | ||
onClick(): void; | ||
size: number; | ||
type: string; | ||
response?: unknown; | ||
originFileObj: File; | ||
} | ||
export interface IUploadProps { | ||
uploadUrl: string; | ||
children: React.ReactNode; | ||
onComplete?(data: Array<unknown>): void; | ||
beforeUpload?(files: FileList): Promise<unknown>; | ||
customList?(list: Array<unknown>): ReactNode; | ||
valueFilter?(file: UploadFile): unknown; | ||
} | ||
export default function Upload(props: IUploadProps): JSX.Element; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { UploadFile } from "./upload"; | ||
export declare function file2uploadFile(file: File): UploadFile; |
Oops, something went wrong.