UNPKG

react-use-tools

Version:

A small library to manage global reactive tools across your React application.

16 lines (13 loc) 244 B
export {}; declare global { interface Tools {} const tools: Tools & { watch: <V>( tracker?: (tools: Tools) => V, options?: { callback?: (value: V) => void; reRender?: boolean; } ) => void; }; }