fix: startDrag params type incorrect (#31082)

Co-authored-by: Black-Hole1 <158blackhole@gmail.com>
This commit is contained in:
trop[bot]
2021-09-23 19:50:21 +09:00
committed by GitHub
parent 98ed314d55
commit 78a1e4d1dd

View File

@@ -1812,7 +1812,8 @@ End subscribing for frame presentation events.
#### `contents.startDrag(item)`
* `item` Object
* `file` String[] | String - The path(s) to the file(s) being dragged.
* `file` String - The path to the file being dragged.
* `files` String[] (optional) - The paths to the files being dragged. (`files` will override `file` field)
* `icon` [NativeImage](native-image.md) | String - The image must be
non-empty on macOS.