Browse Source

Make "target" prop optional in Typescript.

Matthias Bohlen 6 năm trước cách đây
mục cha
commit
d3d86555f0

+ 1 - 1
packages/@uppy/react/src/DashboardModal.d.ts

@@ -1,7 +1,7 @@
 import { DashboardProps } from './Dashboard';
 import { DashboardProps } from './Dashboard';
 
 
 export interface DashboardModalProps extends DashboardProps {
 export interface DashboardModalProps extends DashboardProps {
-  target: string | HTMLElement;
+  target?: string | HTMLElement;
   open?: boolean;
   open?: boolean;
   onRequestClose?: VoidFunction;
   onRequestClose?: VoidFunction;
   closeModalOnClickOutside?: boolean;
   closeModalOnClickOutside?: boolean;