UNPKG
ahooks-v2
Version:
latest (2.10.15)
2.10.15
2.10.13
react hooks library
github.com/alibaba/hooks
alibaba/hooks
ahooks-v2
/
lib
/
useClickAway
/
index.d.ts
5 lines
(4 loc)
•
247 B
TypeScript
View Raw
1
2
3
4
5
import
{
BasicTarget
}
from
'../utils/dom'
;
declare
type
EventType
=
MouseEvent
|
TouchEvent
;
export
default
function
useClickAway
(
onClickAway
: (event: EventType) =>
void
,
target
:
BasicTarget
|
BasicTarget
[],
eventName
?:
string
):
void
;
export
{};