types(@vant/use): improve Ref param typing
This commit is contained in:
@@ -60,7 +60,7 @@ export default {
|
||||
|
||||
```ts
|
||||
function useClickAway(
|
||||
target: Element | Ref<Element>,
|
||||
target: Element | Ref<Element | undefined>,
|
||||
listener: EventListener,
|
||||
options?: Options
|
||||
): void;
|
||||
|
||||
Reference in New Issue
Block a user