mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
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:
parent
5aecc1b208
commit
0f8fc6f2d2
@ -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>>;
|
||||
|
Loading…
Reference in New Issue
Block a user