kjr247 / immutablejs-type-helpers

A set of functional helpers to assist with type checking with Immutable.js and TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

immutablejs-type-helpers

Delightfully sweet helpers for ImmutableJs.

A set of functional helpers to assist with type checking, getting, defaulting, etc. with Immutable.js and TypeScript

Motivation

Ever .toJS() something because you aren't sure of what you are dealing with? This is so common for new comers and vets alike. But just one gotcha just to start us off is well if your data was a List or a Set you get an array... no matter what... in the end you pour your time over the docs and realize they offer some types and some type checking methods, but perhaps you expected some value to exist and be a valid immutable type and allow a default. These utils stream line all of these things saving you time, frustraion, and confusion.

About

A set of functional helpers to assist with type checking with Immutable.js and TypeScript

License:MIT License


Languages

Language:TypeScript 100.0%