UNPKG
@guruhotel/aura-hooks
Version:
latest (2.0.0)
2.0.0
1.3.0
1.2.0
1.1.0
1.0.0
0.3.0
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
🪝 Hooks library designed by the Guruhotel team for Aura UI
gitlab.com/guruhotel/aura-hooks
@guruhotel/aura-hooks
/
types
/
use-drag-and-drop
/
utils
/
use-effect-with-target.d.ts
5 lines
(4 loc)
•
284 B
TypeScript
View Raw
1
2
3
4
5
import
type
{
DependencyList
,
EffectCallback
}
from
"react"
;
import
type
{
BasicTarget
}
from
"./dom-target"
;
declare
const
useEffectWithTarget
:
(
effect
:
EffectCallback
,
deps
:
DependencyList
,
target
:
BasicTarget
<
any
> |
BasicTarget
<
any
>[]
) =>
void
;
export
default
useEffectWithTarget;