Typings and fixes
- [new] add TypeScript typings
- [new] add
.ap()to List, Free and NonEmptyList -- thanks to @WojciechP ( #44 ) - [new] add
"use strict";-- thanks to @krjackso ( #41 )
Typings
TypeScript typings added to repository, so now anyone can:
import { Maybe } from 'monet';
export function getStoredData(key: string): Maybe<SomeData> {
return Maybe.fromNull(localStorage)
.flatMap(ls => Maybe.fromNull(ls.getItem(key)))
.map(JSON.parse);
}