UNPKG

loop-modules

Version:

Shared modules for the Loop product suite.

22 lines (21 loc) 761 B
import { Observable } from 'rxjs/Observable'; import { LoopAssignment } from '../interfaces/loop-assignment.interface'; import { AppState } from './app.state'; /** * The AppState slice for persisting LoopAssignment records * * @export * @interface LoopAssignmentState */ export interface LoopAssignmentState { /** * The collection of loaded LoopAssignment entries from the back-end service * * @type {Array<LoopAssignment>} */ entries: LoopAssignment[]; unread: number; } export declare const initialState: LoopAssignmentState; export declare function getAssignments(state$: Observable<AppState>): Observable<LoopAssignment[]>; export declare function getUnreadAssignments(state$: Observable<AppState>): Observable<number>;