Skip to content
/ elm-ts Public
forked from gcanti/elm-ts

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

License

Notifications You must be signed in to change notification settings

tetsuo/elm-ts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fork of gcanti/elm-ts

The most up-to-date package is published on npm.

npm i @tetsuo/elm-ts

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

Documentation

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%