member_webapp/@overflow/notification/store/entity/notification/notification.state.ts
2018-05-27 18:12:20 +09:00

14 lines
617 B
TypeScript

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