This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as Cmd from "elm-ts/lib/Cmd"; | |
import * as Html from "elm-ts/lib/Html"; | |
import { Dispatch } from "elm-ts/lib/Platform"; | |
import * as Sub from "elm-ts/lib/Sub"; | |
// redux is used exclusively because of https://github.com/zalmoxisus/redux-devtools-extension/issues/613 | |
import { createStore } from "redux"; | |
import { Subject } from "rxjs/Subject"; | |
export interface DevToolsExtension { | |
(options: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Sub } from 'elm-ts/lib/Sub' | |
import { Time as Time_, now as now_ } from 'elm-ts/lib/Time' | |
import 'rxjs/add/operator/map' | |
import { Subject } from 'rxjs/Subject' | |
export type Time = Time_ | |
export const now = now_ | |
const intervals: { [interval: number]: Subject<number> } = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {createStore, applyMiddleware} from 'redux'; | |
import {createEffectCapableStore} from 'redux-side-effects'; | |
import createLogger from 'redux-logger'; | |
import userRegistration, {START_COUNTRY_SELECTION} from './userRegistration'; | |
import {CHANGE_SELECTION, CONFIRM_SELECTION} from './countrySelection'; | |
const storeFactory = createEffectCapableStore(applyMiddleware(createLogger())(createStore)); | |
const store = storeFactory(userRegistration); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {createStore, applyMiddleware} from 'redux'; | |
import {createEffectCapableStore} from 'redux-side-effects'; | |
import createLogger from 'redux-logger'; | |
import userRegistration, {START_COUNTRY_SELECTION} from './userRegistration'; | |
import {CHANGE_SELECTION, CONFIRM_SELECTION} from './countrySelection'; | |
const storeFactory = createEffectCapableStore(applyMiddleware(createLogger())(createStore)); | |
const store = storeFactory(userRegistration); |