This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useCallback, useMemo } from 'react'; | |
import { useSearchParams } from 'react-router-dom'; | |
// helper types | |
export type Nullable<T> = T | undefined | null; | |
export type NullableObject<T extends object> = { [K in keyof T]?: T[K] | null }; | |
export type QueryStateValue = string | number | boolean; | |
export type UseQueryStateSetterFunctionType<T = any> = (prev: T) => T; | |
export type UseQueryStateSetterType<T = any> = | |
| T |