export type CacheTypeReducer<State extends CacheType, CachedType, RawType = CachedType, PresentType = CachedType | RawType, Fallback = PresentType | null,> = [State] extends ['cached'] ? CachedType : [State] extends ['raw'] ? RawType : [State] extends ['cached' | 'raw'] ? PresentType : Fallback;Type Parameters
State extends CacheType
CachedType
optionalRawType? = CachedType
optionalPresentType? = CachedType | RawType
optionalFallback? = PresentType | null
[State] extends ['cached'] ? CachedType : [State] extends ['raw'] ? RawType : [State] extends ['cached' | 'raw'] ? PresentType : Fallback