member_webapp/@overflow/meta/store/entity/meta-probe-os/meta-probe-os.state.ts
crusader 10e14d5edb ing
2018-05-29 19:17:16 +09:00

18 lines
636 B
TypeScript

import { RPCClientError } from '@loafer/ng-rpc';
import { Selector, createSelector } from '@ngrx/store';
import { createEntityAdapter, EntityState } from '@loafer/ng-entity';
import { MetaProbeOs } from '@overflow/commons-typescript/model/meta';
export const metaProbeOsEntityAdapter = createEntityAdapter<MetaProbeOs, RPCClientError>();
export interface State extends EntityState<MetaProbeOs, RPCClientError> {
}
export const initialState: State = metaProbeOsEntityAdapter.getInitialState({
});
export function getSelectors(selector: Selector<any, State>) {
return {
...metaProbeOsEntityAdapter.getSelectors(selector),
};
}