member_webapp/@overflow/noauth-probe/store/connecting/noauth-probe-connecting.state.ts

18 lines
650 B
TypeScript
Raw Normal View History

2018-05-28 08:58:10 +00:00
import { RPCClientError } from '@loafer/ng-rpc';
import { NoAuthProbe } from '@overflow/commons-typescript/model/noauth';
import { Selector, createSelector } from '@ngrx/store';
import { createEntityAdapter, EntityState } from '@loafer/ng-entity';
2018-05-31 07:38:44 +00:00
export const noAuthProbeConnectingAdapter = createEntityAdapter<NoAuthProbe, RPCClientError>();
2018-05-28 08:58:10 +00:00
export interface State extends EntityState<NoAuthProbe, RPCClientError> {
}
2018-05-31 07:38:44 +00:00
export const initialState: State = noAuthProbeConnectingAdapter.getInitialState({
2018-05-28 08:58:10 +00:00
});
export function getSelectors(selector: Selector<any, State>) {
return {
2018-05-31 07:38:44 +00:00
...noAuthProbeConnectingAdapter.getSelectors(selector),
2018-05-28 08:58:10 +00:00
};
}