export type EnumValues = T[Exclude]; export type StateUpdater = Partial | ((prevState: T) => void | T); export type SetState = (action: StateUpdater) => void;