UNPKG

@vue-widget/hooks

Version:

hooks from react to vue

8 lines (7 loc) 469 B
import { type WatchSource } from "vue"; import type { EffectType } from "./createEffect"; import type { BasicTarget } from "./domTarget"; type EffectWithTargetCleanUp = () => void; export type EffectWithTargetCallback = () => EffectWithTargetCleanUp | void; declare const createEffectWithTarget: (type: EffectType) => (effect: EffectWithTargetCallback, deps: WatchSource[], target: BasicTarget<any> | BasicTarget<any>[]) => void; export default createEffectWithTarget;