common-fp-types
v0.1.3
Published
Types for common-fp
Downloads
18
Readme
Common FP Types
This holds the types for common-fp.
I want to keep the types in a separate package for versioning purposes, as I don't use typescript regularly and haven't ironed out how I want to manage it.
Install
This package only ever makes sense with common-fp
$ npm i common-fp common-fp-typesUse
Note: common-fp redirects typescript to commom-fp-types
import { mapValues } from 'common-fp'
const incrementAll = mapValues((i: number) => i + 1)
const result = incrementAll('string is invalid')
// typescript shows you incrementAll can't take a stringYou can also try it out in your browser.
