loop-modules
Version:
Shared modules for the Loop product suite.
20 lines (19 loc) • 608 B
TypeScript
import { Observable } from 'rxjs/Observable';
import { LoopSession } from '../interfaces/loop-session.interface';
import { AppState } from './app.state';
/**
* The AppState slice for persisting LoopSession records
*
* @export
* @interface LoopSessionState
*/
export interface LoopSessionState {
/**
* The collection of loaded LoopSession entries from the back-end service
*
* @type {LoopSession[]}
*/
entries?: LoopSession[];
}
export declare const initialState: LoopSessionState;
export declare function getSessions(state$: Observable<AppState>): Observable<LoopSession[]>;