UNPKG

@gilbarbara/hooks

Version:

Collection of useful React hooks

12 lines (6 loc) 404 B
import { RefObject } from 'react'; export type FunctionWithArguments = (...arguments_: any[]) => any; export type PlainObject<T = unknown> = Record<PropertyKey, T>; export type Primitive = bigint | boolean | null | number | string | symbol | undefined; export type Target<T extends Element> = RefObject<T | null> | T | null | string; export type TimerStatus = 'pending' | 'completed' | 'cancelled';