Skip to content

Instantly share code, notes, and snippets.

@vyaron
vyaron / README.md
Created February 25, 2017 21:36 — forked from japsu/README.md
Type-safe Redux reducers in TypeScript using Immutable.js and typed-immutable-record

Type-safe Redux reducers in TypeScript using Immutable.js and typed-immutable-record

Copyright (C) 2017 Leonidas Oy Ltd
Written by <santtu.pajukanta@leonidasoy.fi>
Licensed under the MIT license

We attempt to harness the friendly API of Immutable.js to build Redux reducers while trying to preserve as much type safety as possible.

State branches are TypedRecords. A combineReducers that outputs TypedRecords is provided.

@vyaron
vyaron / config.js
Last active May 14, 2016 16:45 — forked from johnlindquist/config.js
01 - Rendering an Observable with the Async Pipe
System.config({
//use typescript for compilation
transpiler: 'typescript',
//typescript compiler options
typescriptOptions: {
emitDecoratorMetadata: true
},
//map tells the System loader where to look for things
map: {
app: './src'