type StateOrEmptyObject
Utility type that returns state objects unless it was extracted/inferred as any
type in which case we return EmptyObject
Signature:
export type StateOrEmptyObject<State> = TypeofState<State> extends never ? EmptyObject : State;
References
- ypeofState](typeof-state)
- EmptyObject