Type definition incorrect in LassoSelect behavior onSelect callback
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
The type definition for the `onSelect` callback in the [LassoSelect](https://github.com/antvis/Graphin/blob/0a3e4a5a5d501fc071007152e9462b50548287f5/packages/graphin/src/behaviors/LassoSelect.tsx) component is `() => void` but the real G6 behavior definition (defined [here](https://antv-g6.gitee.io/en/docs/manual/middle/states/defaultBehavior#lasso-select)) is `(nodes, edges)=>void`.


### Your Example Website or App
N/A
### Steps to Reproduce the Bug or Issue
Use the LassoSelect component
Provide the `onSelect` callback and try to acces the selected nodes or edges.
```ts
{
console.log('nodes', nodes);
console.log('edges', edges);
}}
/>
```
### Expected behavior
Should not get a typing error.

### Screenshots or Videos

### Platform
- OS: Windows
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.