UNPKG

ht_hooks

Version:
10 lines (9 loc) 265 B
export interface Options<T, U> { initialValue?: T; transformer?: (value: U) => T; } declare function useEventTarget<T, U = T>(options?: Options<T, U>): readonly [any, { readonly onChange: any; readonly reset: any; }]; export default useEventTarget;