member_webapp/@overflow/discovery/store/regist/regist.state.ts
crusader d59d9379f9 ing
2018-05-24 15:44:13 +09:00

19 lines
402 B
TypeScript

import { RPCClientError } from '@loafer/ng-rpc';
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
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;