mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
8 lines
265 B
TypeScript
8 lines
265 B
TypeScript
|
/**
|
||
|
* `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;
|