Type aliases
Refreshing
Type parameters
Variables
Const ap
ap
: { <A, B, C>
(fn
: RemoteData<A, (value
: B, refreshing
: boolean) => C>, value
: RemoteData<A, B>): RemoteData<A, C>; <A, B, C>
(fn
: RemoteData<A, (value
: B, refreshing
: boolean) => C>): (value
: RemoteData<A, B>) => RemoteData<A, C> } = curry(__ap) as {<A, B, C>(fn: RemoteData<A, (value: B, refreshing: boolean) => C>,value: RemoteData<A, B>,): RemoteData<A, C><A, B, C>(fn: RemoteData<A, (value: B, refreshing: boolean) => C>): (value: RemoteData<A, B>,) => RemoteData<A, C>}
Type declaration
-
- <A, B, C>(fn: RemoteData<A, (value: B, refreshing: boolean) => C>, value: RemoteData<A, B>): RemoteData<A, C>
- <A, B, C>(fn: RemoteData<A, (value: B, refreshing: boolean) => C>): (value: RemoteData<A, B>) => RemoteData<A, C>
-
Type parameters
Parameters
-
fn: RemoteData<A, (value: B, refreshing: boolean) => C>
-
-
Type parameters
Parameters
-
fn: RemoteData<A, (value: B, refreshing: boolean) => C>
Const chain
chain
: { <A, B, C>
(f
: (value
: B, refreshing
: boolean) => RemoteData<A, C>, data
: RemoteData<A, B>): RemoteData<A, C>; <A, B, C>
(f
: (value
: B, refreshing
: boolean) => RemoteData<A, C>): (data
: RemoteData<A, B>) => RemoteData<A, C> } = curry(__chain) as {<A, B, C>(f: (value: B, refreshing: boolean) => RemoteData<A, C>,data: RemoteData<A, B>,): RemoteData<A, C><A, B, C>(f: (value: B, refreshing: boolean) => RemoteData<A, C>): (data: RemoteData<A, B>,) => RemoteData<A, C>}
Type declaration
-
- <A, B, C>(f: (value: B, refreshing: boolean) => RemoteData<A, C>, data: RemoteData<A, B>): RemoteData<A, C>
- <A, B, C>(f: (value: B, refreshing: boolean) => RemoteData<A, C>): (data: RemoteData<A, B>) => RemoteData<A, C>
-
Type parameters
Parameters
-
f: (value: B, refreshing: boolean) => RemoteData<A, C>
-
-
Parameters
-
value: B
-
refreshing: boolean
-
-
Type parameters
Parameters
-
f: (value: B, refreshing: boolean) => RemoteData<A, C>
-
-
Parameters
-
value: B
-
refreshing: boolean
Const map
map
: { <A, B, C>
(f
: (value
: B, refreshing
: boolean) => C, data
: RemoteData<A, B>): RemoteData<A, C>; <A, B, C>
(f
: (value
: B, refreshing
: boolean) => C): (data
: RemoteData<A, B>) => RemoteData<A, C> } = curry(__map) as {<A, B, C>(f: (value: B, refreshing: boolean) => C, data: RemoteData<A, B>): RemoteData<A, C><A, B, C>(f: (value: B, refreshing: boolean) => C): (data: RemoteData<A, B>) => RemoteData<A, C>}
Type declaration
-
- <A, B, C>(f: (value: B, refreshing: boolean) => C, data: RemoteData<A, B>): RemoteData<A, C>
- <A, B, C>(f: (value: B, refreshing: boolean) => C): (data: RemoteData<A, B>) => RemoteData<A, C>
-
Type parameters
Parameters
-
f: (value: B, refreshing: boolean) => C
-
- (value: B, refreshing: boolean): C
-
Parameters
-
value: B
-
refreshing: boolean
Returns C
-
-
Type parameters
Parameters
-
f: (value: B, refreshing: boolean) => C
-
- (value: B, refreshing: boolean): C
-
Parameters
-
value: B
-
refreshing: boolean
Returns C
Const unpack
unpack
: { <A, B, C>
(noData
: () => C, loading
: () => C, failure
: (value
: A) => C, success
: (value
: B) => C, remoteData
: RemoteData<A, B>): C; <A, B, C>
(noData
: () => C, loading
: () => C, failure
: (value
: A) => C, success
: (value
: B) => C): (remoteData
: RemoteData<A, B>) => C; <A, B, C>
(noData
: () => C, loading
: () => C, failure
: (value
: A) => C): { (success
: (value
: B) => C, remoteData
: RemoteData<A, B>): C; (success
: (value
: B) => C): (remoteData
: RemoteData<A, B>) => C }; <C>
(noData
: () => C, loading
: () => C): { <A, B>
(failure
: (value
: A) => C, success
: (value
: B) => C, remoteData
: RemoteData<A, B>): C; <A, B>
(failure
: (value
: A) => C, success
: (value
: B) => C): (remoteData
: RemoteData<A, B>) => C; <A>
(failure
: (value
: A) => C): { <B>
(success
: (value
: B) => C, remoteData
: RemoteData<A, B>): C; <B>
(success
: (value
: B) => C): (remoteData
: RemoteData<A, B>) => C } }; <C>
(noData
: () => C): { <A, B>
(loading
: () => C, failure
: (value
: A) => C, success
: (value
: B) => C, remoteData
: RemoteData<A, B>): C; <A, B>
(loading
: () => C, failure
: (value
: A) => C, success
: (value
: B) => C): (remoteData
: RemoteData<A, B>) => C; <A, B>
(loading
: () => C, failure
: (value
: A) => C): { (success
: (value
: B) => C, remoteData
: RemoteData<A, B>): C; (success
: (value
: B) => C): (remoteData
: RemoteData<A, B>) => C }; (loading
: () => C): { <A, B>
(failure
: (value
: A) => C, success
: (value
: B) => C, remoteData
: RemoteData<A, B>): C; <A, B>
(failure
: (value
: A) => C, success
: (value
: B) => C): (remoteData
: RemoteData<A, B>) => C; <A>
(failure
: (value
: A) => C): { <B>
(success
: (value
: B) => C, remoteData
: RemoteData<A, B>): C; <B>
(success
: (value
: B) => C): (remoteData
: RemoteData<A, B>) => C } } } } = curry(__unpackRemoteData)
Type declaration
-
- <A, B, C>(noData: () => C, loading: () => C, failure: (value: A) => C, success: (value: B) => C, remoteData: RemoteData<A, B>): C
- <A, B, C>(noData: () => C, loading: () => C, failure: (value: A) => C, success: (value: B) => C): (remoteData: RemoteData<A, B>) => C
- <A, B, C>(noData: () => C, loading: () => C, failure: (value: A) => C): { (success: (value: B) => C, remoteData: RemoteData<A, B>): C; (success: (value: B) => C): (remoteData: RemoteData<A, B>) => C }
- <C>(noData: () => C, loading: () => C): { <A, B>(failure: (value: A) => C, success: (value: B) => C, remoteData: RemoteData<A, B>): C; <A, B>(failure: (value: A) => C, success: (value: B) => C): (remoteData: RemoteData<A, B>) => C; <A>(failure: (value: A) => C): { <B>(success: (value: B) => C, remoteData: RemoteData<A, B>): C; <B>(success: (value: B) => C): (remoteData: RemoteData<A, B>) => C } }
- <C>(noData: () => C): { <A, B>(loading: () => C, failure: (value: A) => C, success: (value: B) => C, remoteData: RemoteData<A, B>): C; <A, B>(loading: () => C, failure: (value: A) => C, success: (value: B) => C): (remoteData: RemoteData<A, B>) => C; <A, B>(loading: () => C, failure: (value: A) => C): { (success: (value: B) => C, remoteData: RemoteData<A, B>): C; (success: (value: B) => C): (remoteData: RemoteData<A, B>) => C }; (loading: () => C): { <A, B>(failure: (value: A) => C, success: (value: B) => C, remoteData: RemoteData<A, B>): C; <A, B>(failure: (value: A) => C, success: (value: B) => C): (remoteData: RemoteData<A, B>) => C; <A>(failure: (value: A) => C): { <B>(success: (value: B) => C, remoteData: RemoteData<A, B>): C; <B>(success: (value: B) => C): (remoteData: RemoteData<A, B>) => C } } }
-
Type parameters
Parameters
-
noData: () => C
-
loading: () => C
-
failure: (value: A) => C
-
success: (value: B) => C
-
Returns C
-
Type parameters
Parameters
-
noData: () => C
-
loading: () => C
-
failure: (value: A) => C
-
success: (value: B) => C
Returns (remoteData: RemoteData<A, B>) => C
-
Type parameters
Parameters
-
noData: () => C
-
loading: () => C
-
failure: (value: A) => C
Returns { (success: (value: B) => C, remoteData: RemoteData<A, B>): C; (success: (value: B) => C): (remoteData: RemoteData<A, B>) => C }
-
- (success: (value: B) => C, remoteData: RemoteData<A, B>): C
- (success: (value: B) => C): (remoteData: RemoteData<A, B>) => C
-
Parameters
Returns C
-
Parameters
Returns (remoteData: RemoteData<A, B>) => C
-
Type parameters
Parameters
-
noData: () => C
-
loading: () => C
Returns { <A, B>(failure: (value: A) => C, success: (value: B) => C, remoteData: RemoteData<A, B>): C; <A, B>(failure: (value: A) => C, success: (value: B) => C): (remoteData: RemoteData<A, B>) => C; <A>(failure: (value: A) => C): { <B>(success: (value: B) => C, remoteData: RemoteData<A, B>): C; <B>(success: (value: B) => C): (remoteData: RemoteData<A, B>) => C } }
-
- <A, B>(failure: (value: A) => C, success: (value: B) => C, remoteData: RemoteData<A, B>): C
- <A, B>(failure: (value: A) => C, success: (value: B) => C): (remoteData: RemoteData<A, B>) => C
- <A>(failure: (value: A) => C): { <B>(success: (value: B) => C, remoteData: RemoteData<A, B>): C; <B>(success: (value: B) => C): (remoteData: RemoteData<A, B>) => C }
-
Type parameters
Parameters
-
failure: (value: A) => C
-
success: (value: B) => C
-
Returns C
-
Type parameters
Parameters
-
failure: (value: A) => C
-
success: (value: B) => C
Returns (remoteData: RemoteData<A, B>) => C
-
Type parameters
Parameters
Returns { <B>(success: (value: B) => C, remoteData: RemoteData<A, B>): C; <B>(success: (value: B) => C): (remoteData: RemoteData<A, B>) => C }
-
- <B>(success: (value: B) => C, remoteData: RemoteData<A, B>): C
- <B>(success: (value: B) => C): (remoteData: RemoteData<A, B>) => C
-
Type parameters
Parameters
Returns C
-
Type parameters
Parameters
Returns (remoteData: RemoteData<A, B>) => C
-
Type parameters
Parameters
Returns { <A, B>(loading: () => C, failure: (value: A) => C, success: (value: B) => C, remoteData: RemoteData<A, B>): C; <A, B>(loading: () => C, failure: (value: A) => C, success: (value: B) => C): (remoteData: RemoteData<A, B>) => C; <A, B>(loading: () => C, failure: (value: A) => C): { (success: (value: B) => C, remoteData: RemoteData<A, B>): C; (success: (value: B) => C): (remoteData: RemoteData<A, B>) => C }; (loading: () => C): { <A, B>(failure: (value: A) => C, success: (value: B) => C, remoteData: RemoteData<A, B>): C; <A, B>(failure: (value: A) => C, success: (value: B) => C): (remoteData: RemoteData<A, B>) => C; <A>(failure: (value: A) => C): { <B>(success: (value: B) => C, remoteData: RemoteData<A, B>): C; <B>(success: (value: B) => C): (remoteData: RemoteData<A, B>) => C } } }
-
- <A, B>(loading: () => C, failure: (value: A) => C, success: (value: B) => C, remoteData: RemoteData<A, B>): C
- <A, B>(loading: () => C, failure: (value: A) => C, success: (value: B) => C): (remoteData: RemoteData<A, B>) => C
- <A, B>(loading: () => C, failure: (value: A) => C): { (success: (value: B) => C, remoteData: RemoteData<A, B>): C; (success: (value: B) => C): (remoteData: RemoteData<A, B>) => C }
- (loading: () => C): { <A, B>(failure: (value: A) => C, success: (value: B) => C, remoteData: RemoteData<A, B>): C; <A, B>(failure: (value: A) => C, success: (value: B) => C): (remoteData: RemoteData<A, B>) => C; <A>(failure: (value: A) => C): { <B>(success: (value: B) => C, remoteData: RemoteData<A, B>): C; <B>(success: (value: B) => C): (remoteData: RemoteData<A, B>) => C } }
-
Type parameters
Parameters
-
loading: () => C
-
failure: (value: A) => C
-
success: (value: B) => C
-
Returns C
-
Type parameters
Parameters
-
loading: () => C
-
failure: (value: A) => C
-
success: (value: B) => C
Returns (remoteData: RemoteData<A, B>) => C
-
Type parameters
Parameters
-
loading: () => C
-
failure: (value: A) => C
Returns { (success: (value: B) => C, remoteData: RemoteData<A, B>): C; (success: (value: B) => C): (remoteData: RemoteData<A, B>) => C }
-
- (success: (value: B) => C, remoteData: RemoteData<A, B>): C
- (success: (value: B) => C): (remoteData: RemoteData<A, B>) => C
-
Parameters
Returns C
-
Parameters
Returns (remoteData: RemoteData<A, B>) => C
-
Parameters
Returns { <A, B>(failure: (value: A) => C, success: (value: B) => C, remoteData: RemoteData<A, B>): C; <A, B>(failure: (value: A) => C, success: (value: B) => C): (remoteData: RemoteData<A, B>) => C; <A>(failure: (value: A) => C): { <B>(success: (value: B) => C, remoteData: RemoteData<A, B>): C; <B>(success: (value: B) => C): (remoteData: RemoteData<A, B>) => C } }
-
- <A, B>(failure: (value: A) => C, success: (value: B) => C, remoteData: RemoteData<A, B>): C
- <A, B>(failure: (value: A) => C, success: (value: B) => C): (remoteData: RemoteData<A, B>) => C
- <A>(failure: (value: A) => C): { <B>(success: (value: B) => C, remoteData: RemoteData<A, B>): C; <B>(success: (value: B) => C): (remoteData: RemoteData<A, B>) => C }
-
Type parameters
Parameters
-
failure: (value: A) => C
-
success: (value: B) => C
-
Returns C
-
Type parameters
Parameters
-
failure: (value: A) => C
-
success: (value: B) => C
Returns (remoteData: RemoteData<A, B>) => C
-
Type parameters
Parameters
Returns { <B>(success: (value: B) => C, remoteData: RemoteData<A, B>): C; <B>(success: (value: B) => C): (remoteData: RemoteData<A, B>) => C }
-
- <B>(success: (value: B) => C, remoteData: RemoteData<A, B>): C
- <B>(success: (value: B) => C): (remoteData: RemoteData<A, B>) => C
-
Type parameters
Parameters
Returns C
-
Type parameters
Parameters
Returns (remoteData: RemoteData<A, B>) => C
Functions
Const hasNoData
- hasNoData<A, B>(remoteData: RemoteData<A, B>): remoteData is NoData
-
Type parameters
Parameters
Returns remoteData is NoData
Const isDoneLoading
- isDoneLoading<A, B>(remoteData: RemoteData<A, B>): remoteData is Loaded<A, B>
-
Type parameters
Parameters
Returns remoteData is Loaded<A, B>
Const isFailure
- isFailure<A, B>(remoteData: RemoteData<A, B>): remoteData is Failure<A>
-
Type parameters
Parameters
Returns remoteData is Failure<A>
Const isLoading
- isLoading<A, B>(remoteData: RemoteData<A, B>): remoteData is Loading
-
Type parameters
Parameters
Returns remoteData is Loading
Const isRefreshing
- isRefreshing<A, B>(remoteData: RemoteData<A, B>): remoteData is Refreshing<A, B>
-
Type parameters
Parameters
Returns remoteData is Refreshing<A, B>
Const isRefreshingFailure
- isRefreshingFailure<A, B>(remoteData: RemoteData<A, B>): remoteData is RefreshingFailure<A>
-
Type parameters
Parameters
Returns remoteData is RefreshingFailure<A>
Const isRefreshingSuccess
- isRefreshingSuccess<A, B>(remoteData: RemoteData<A, B>): remoteData is RefreshingSuccess<B>
-
Type parameters
Parameters
Returns remoteData is RefreshingSuccess<B>
Const isSuccess
- isSuccess<A, B>(remoteData: RemoteData<A, B>): remoteData is Success<B>
-
Type parameters
Parameters
Returns remoteData is Success<B>
Object literals
Const Loading
Loading: object
status
status
: Loading = RemoteDataStatus.Loading
Const NoData
NoData: object
status
status
: NoData = RemoteDataStatus.NoData
@typed/remote-data