A porting of TEA to TypeScript featuring fp-ts, io-ts, rxjs5 and React


Keywords
typescript, elm, fp-ts, elm-lang, functional-programming, io-ts, monocle-ts, rxjs5
License
MIT
Install
npm install elm-ts@0.4.3

Documentation

Differences from Elm

  • no ports
  • decoders are derived from io-ts types
  • react instead of virtual-dom (pluggable)
  • Navigation is based on history

React

import * as React from 'elm-ts/lib/React'
import { render } from 'react-dom'
import * as component from './examples/Counter'

const main = React.program(component.init, component.update, component.view)
React.run(main, dom => render(dom, document.getElementById('app')!))

Todomvc implementation

elm-ts-todomvc

Examples