Add Capture prop to Upload Component Typescript Definition (#33370)

Co-authored-by: Michał Podeszwa <178679-michalpodeszwa@users.noreply.gitlab.com>
This commit is contained in:
Michał Podeszwa 2021-12-21 11:15:58 +01:00 committed by GitHub
parent 5aecc1b208
commit 0f8fc6f2d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ import * as React from 'react';
import {
RcFile as OriRcFile,
UploadRequestOption as RcCustomRequestOptions,
UploadProps as RcUploadProps,
} from 'rc-upload/lib/interface';
import { ProgressProps } from '../progress';
@ -83,7 +84,7 @@ type TransformFileHandler = (
) => string | Blob | File | PromiseLike<string | Blob | File>;
type BeforeUploadValueType = void | boolean | string | Blob | File;
export interface UploadProps<T = any> {
export interface UploadProps<T = any> extends Pick<RcUploadProps, 'capture'> {
type?: UploadType;
name?: string;
defaultFileList?: Array<UploadFile<T>>;