UNPKG

loop-modules

Version:

Shared modules for the Loop product suite.

37 lines (36 loc) 1.03 kB
import { Observable } from 'rxjs/Observable'; import { LoopUser } from '../interfaces/loop-user.interface'; import { AppState } from './app.state'; /** * The AppState slice for persisting LoopUser records * * @export * @interface LoopUserState */ export interface LoopUserState { /** * The authorized user object * * @type {LoopUser} * @memberOf LoopUserState */ authUser?: LoopUser; /** * The list of all users * * @type {LoopUser[]} * @memberOf LoopUserState */ entries?: LoopUser[]; /** * The list of all selected users * * @type {LoopUser[]} * @memberOf LoopUserState */ selectedEntries?: LoopUser[]; } export declare const initialState: LoopUserState; export declare function getAuthUser(state$: Observable<AppState>): Observable<LoopUser>; export declare function getUsers(state$: Observable<AppState>): Observable<LoopUser[]>; export declare function getSelectedUsers(state$: Observable<AppState>): Observable<LoopUser[]>;