19 lines
378 B
TypeScript
19 lines
378 B
TypeScript
|
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
||
|
|
||
|
import { DiscoveryStartInfo } from '../../model';
|
||
|
|
||
|
export interface State {
|
||
|
error: RPCClientError | null;
|
||
|
isPending: boolean;
|
||
|
isSuccess: Boolean | null;
|
||
|
}
|
||
|
|
||
|
export const initialState: State = {
|
||
|
error: null,
|
||
|
isPending: false,
|
||
|
isSuccess: null,
|
||
|
};
|
||
|
|
||
|
export const getSuccess = (state: State) => state.isSuccess;
|
||
|
|