Skip to content

Commit f48c3d3

Browse files
committed
Update docs
1 parent a3442f1 commit f48c3d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ import { ReactSpreadsheetImport } from "react-spreadsheet-import";
5555
isOpen: Boolean
5656
// Called when flow is closed without reaching submit.
5757
onClose: () => void
58-
// Called after user completes the flow. Provides data array, where data keys matches your field keys.
59-
onSubmit: (data, file) => void
58+
// Called after user completes the flow. Provides data array, where data keys matches your field keys. You can return a promise that will be awaited.
59+
onSubmit: (data, file) => void | Promise<any>
6060
```
6161

6262
### Fields

0 commit comments

Comments
 (0)