GoScrobble/web/node_modules/react-toastify/dist/hooks/useKeeper.d.ts

8 lines
265 B
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
/**
* `useKeeper` is a helper around `useRef`.
*
* You don't need to access the `.current`property to get the value
* If refresh is set to true. The ref will be updated every render
*/
export declare function useKeeper<T>(arg: T, refresh?: boolean): T;