19 lines
402 B
TypeScript
Raw Normal View History

2018-05-24 15:44:13 +09:00
import { RPCClientError } from '@loafer/ng-rpc';
2018-04-06 20:02:18 +09:00
2018-05-02 17:09:39 +09:00
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
2018-04-06 20:02:18 +09:00
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;