loop-modules
Version:
Shared modules for the Loop product suite.
27 lines (26 loc) • 891 B
TypeScript
import { Observable } from 'rxjs/Observable';
import { LoopScenario } from '../interfaces/loop-scenario.interface';
import { AppState } from './app.state';
/**
* The AppState slice for persisting LoopScenario records
*
* @export
* @interface LoopScenarioState
*/
export interface LoopScenarioState {
/**
* The collection of loaded LoopScenario entries from the back-end service
*
* @type {LoopScenario[]}
*/
entries?: LoopScenario[];
/**
* The collection of selected LoopScenario entries' identities
*
* @type {string[]} The LoopScenario identities
*/
selectedEntries?: string[];
}
export declare const initialState: LoopScenarioState;
export declare function getScenarios(state$: Observable<AppState>): Observable<LoopScenario[]>;
export declare function getSelectedScenarios(state$: Observable<AppState>): Observable<string[]>;