UNPKG
@rbxts/hook-bag
Version:
latest (0.2.0)
0.2.0
0.1.1
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Collection of custom roact hooks
github.com/Rimuy/hook-bag
Rimuy/hook-bag
@rbxts/hook-bag
/
typings
/
usePrevious.d.ts
11 lines
(9 loc)
•
211 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
HookCreator
}
from
"./"
;
/** * Simply returns the previous state. *
@param
value The state. */
declare
function
usePrevious<T>(
value
: T ):
HookCreator
<T |
undefined
>;
export
= usePrevious;