Skip to content

Commit 8944126

Browse files
committed
Update TS types
1 parent fd66b23 commit 8944126

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

packages/react-native/Libraries/Types/CoreEventTypes.d.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,19 +307,24 @@ export interface FocusEvent extends NativeSyntheticEvent<NativeFocusEvent> {}
307307
export interface BlueEvent extends NativeSyntheticEvent<NativeBlurEvent> {}
308308

309309
// Drag and Drop types
310-
export interface DataTransferItem {
310+
export interface DataTransferFile {
311311
name: string;
312-
kind: string;
313-
type: string;
312+
type: string | null | undefined;
314313
uri: string;
315314
size?: number | undefined;
316315
width?: number | undefined;
317316
height?: number | undefined;
318317
}
319318

319+
export interface DataTransferItem {
320+
kind: string;
321+
type: string | null | undefined;
322+
}
323+
320324
export interface DataTransfer {
321-
files: ReadonlyArray<DataTransferItem>;
322-
types: ReadonlyArray<string>;
325+
files: ReadonlyArray<DataTransferFile>;
326+
items: ReadonlyArray<DataTransferItem>;
327+
types: ReadonlyArray<string | null | undefined>;
323328
}
324329

325330
export interface DragEvent extends MouseEvent {

0 commit comments

Comments
 (0)