6 ms·
> the state of Immutability and Typed Javascript is pretty grim as far as I can tell, unless I'm missing something. You definitely are missing something. Immut
by johnfn 10y ago
> the state of Immutability and Typed Javascript is pretty grim as far as I can tell, unless I'm missing something.
You definitely are missing something. Immutablejs and TS go together fine. Assigning to an immutable property or object is a syntax error instead of a runtime error. It's great.
- tomelders 10y agoI'll need to take another look at TypeScript. Last I checked you have to wrap your immutable records in classes with both TS and Flow. That's still true for Flow as far as I know.
- johnfn 10y agoI actually made my own type definitions that made immutablejs records "just work" for TS. I submitted them to the immutablejs guys, but they never acted on them.