UNPKG

react-atom-toast

Version:
5 lines (3 loc) 212 B
type ShouldUpdateFunc<T> = (prev: T | undefined, next: T) => boolean; declare function usePrevious<T>(state: T, shouldUpdate?: ShouldUpdateFunc<T>): T | undefined; export { type ShouldUpdateFunc, usePrevious };