archieve-projects/微信机器人/node_modules/fp-ts
Li Wei 6d6bcf309d backup: 2025-02-24 2025-02-24 15:22:12 +08:00
..
Alt backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Alternative backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Applicative backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Apply backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Array backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Bifunctor backup: 2025-02-24 2025-02-24 15:22:12 +08:00
BooleanAlgebra backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Bounded backup: 2025-02-24 2025-02-24 15:22:12 +08:00
BoundedDistributiveLattice backup: 2025-02-24 2025-02-24 15:22:12 +08:00
BoundedJoinSemilattice backup: 2025-02-24 2025-02-24 15:22:12 +08:00
BoundedLattice backup: 2025-02-24 2025-02-24 15:22:12 +08:00
BoundedMeetSemilattice backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Category backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Chain backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ChainRec backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Choice backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Comonad backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Compactable backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Console backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Const backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Contravariant backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Date backup: 2025-02-24 2025-02-24 15:22:12 +08:00
DistributiveLattice backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Either backup: 2025-02-24 2025-02-24 15:22:12 +08:00
EitherT backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Endomorphism backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Eq backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Extend backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Field backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Filterable backup: 2025-02-24 2025-02-24 15:22:12 +08:00
FilterableWithIndex backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Foldable backup: 2025-02-24 2025-02-24 15:22:12 +08:00
FoldableWithIndex backup: 2025-02-24 2025-02-24 15:22:12 +08:00
FromEither backup: 2025-02-24 2025-02-24 15:22:12 +08:00
FromIO backup: 2025-02-24 2025-02-24 15:22:12 +08:00
FromReader backup: 2025-02-24 2025-02-24 15:22:12 +08:00
FromState backup: 2025-02-24 2025-02-24 15:22:12 +08:00
FromTask backup: 2025-02-24 2025-02-24 15:22:12 +08:00
FromThese backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Functor backup: 2025-02-24 2025-02-24 15:22:12 +08:00
FunctorWithIndex backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Group backup: 2025-02-24 2025-02-24 15:22:12 +08:00
HKT backup: 2025-02-24 2025-02-24 15:22:12 +08:00
HeytingAlgebra backup: 2025-02-24 2025-02-24 15:22:12 +08:00
IO backup: 2025-02-24 2025-02-24 15:22:12 +08:00
IOEither backup: 2025-02-24 2025-02-24 15:22:12 +08:00
IOOption backup: 2025-02-24 2025-02-24 15:22:12 +08:00
IORef backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Identity backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Invariant backup: 2025-02-24 2025-02-24 15:22:12 +08:00
JoinSemilattice backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Json backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Lattice backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Magma backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Map backup: 2025-02-24 2025-02-24 15:22:12 +08:00
MeetSemilattice backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Monad backup: 2025-02-24 2025-02-24 15:22:12 +08:00
MonadIO backup: 2025-02-24 2025-02-24 15:22:12 +08:00
MonadTask backup: 2025-02-24 2025-02-24 15:22:12 +08:00
MonadThrow backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Monoid backup: 2025-02-24 2025-02-24 15:22:12 +08:00
NaturalTransformation backup: 2025-02-24 2025-02-24 15:22:12 +08:00
NonEmptyArray backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Option backup: 2025-02-24 2025-02-24 15:22:12 +08:00
OptionT backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Ord backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Ordering backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Pointed backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Predicate backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Profunctor backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Random backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Reader backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ReaderEither backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ReaderIO backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ReaderT backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ReaderTask backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ReaderTaskEither backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ReadonlyArray backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ReadonlyMap backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ReadonlyNonEmptyArray backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ReadonlyRecord backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ReadonlySet backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ReadonlyTuple backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Record backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Refinement backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Ring backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Semigroup backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Semigroupoid backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Semiring backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Separated backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Set backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Show backup: 2025-02-24 2025-02-24 15:22:12 +08:00
State backup: 2025-02-24 2025-02-24 15:22:12 +08:00
StateReaderTaskEither backup: 2025-02-24 2025-02-24 15:22:12 +08:00
StateT backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Store backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Strong backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Task backup: 2025-02-24 2025-02-24 15:22:12 +08:00
TaskEither backup: 2025-02-24 2025-02-24 15:22:12 +08:00
TaskOption backup: 2025-02-24 2025-02-24 15:22:12 +08:00
TaskThese backup: 2025-02-24 2025-02-24 15:22:12 +08:00
These backup: 2025-02-24 2025-02-24 15:22:12 +08:00
TheseT backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Traced backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Traversable backup: 2025-02-24 2025-02-24 15:22:12 +08:00
TraversableWithIndex backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Tree backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Tuple backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Unfoldable backup: 2025-02-24 2025-02-24 15:22:12 +08:00
ValidationT backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Witherable backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Writer backup: 2025-02-24 2025-02-24 15:22:12 +08:00
WriterT backup: 2025-02-24 2025-02-24 15:22:12 +08:00
Zero backup: 2025-02-24 2025-02-24 15:22:12 +08:00
boolean backup: 2025-02-24 2025-02-24 15:22:12 +08:00
es6 backup: 2025-02-24 2025-02-24 15:22:12 +08:00
function backup: 2025-02-24 2025-02-24 15:22:12 +08:00
internal backup: 2025-02-24 2025-02-24 15:22:12 +08:00
lib backup: 2025-02-24 2025-02-24 15:22:12 +08:00
number backup: 2025-02-24 2025-02-24 15:22:12 +08:00
pipeable backup: 2025-02-24 2025-02-24 15:22:12 +08:00
string backup: 2025-02-24 2025-02-24 15:22:12 +08:00
struct backup: 2025-02-24 2025-02-24 15:22:12 +08:00
void backup: 2025-02-24 2025-02-24 15:22:12 +08:00
CHANGELOG.md backup: 2025-02-24 2025-02-24 15:22:12 +08:00
HKT.d.ts backup: 2025-02-24 2025-02-24 15:22:12 +08:00
LICENSE backup: 2025-02-24 2025-02-24 15:22:12 +08:00
README.md backup: 2025-02-24 2025-02-24 15:22:12 +08:00
package.json backup: 2025-02-24 2025-02-24 15:22:12 +08:00

README.md

Functional programming in TypeScript

build status npm downloads

Introduction

fp-ts is a library for typed functional programming in TypeScript.

fp-ts aims to allow developers to use popular patterns and abstractions that are available in most functional languages. For this, it includes the most popular data types, type classes and abstractions such as Option, Either, IO, Task, Functor, Applicative, Monad to empower users to write pure FP apps and libraries built atop higher order abstractions.

A distinctive feature of fp-ts with respect to other functional libraries is its implementation of Higher Kinded Types, which TypeScript doesn't support natively.

Inspired by

Sponsors

Unsplash
Unsplash
https://unsplash.com/

The internets source for visuals.
Powered by creators everywhere.

Installation

To install the stable version:

npm install fp-ts

Make sure to always have a single version of fp-ts installed in your project. Multiple versions are known to cause tsc to hang during compilation. You can check the versions currently installed using npm ls fp-ts (make sure there's a single version and all the others are marked as deduped).

TypeScript compatibility

Strictness This library is conceived, tested and is supposed to be consumed by TypeScript with the strict flag turned on.

fp-ts version required typescript version
2.0.x+ 3.5+
1.15.x+ 3.1+
<= 1.14.4 2.8+ (*)

(*) If you are running < typescript@3.0.1 you have to polyfill the unknown type. You can use unknown-ts as a polyfill.

Documentation

Disclaimer. Teaching functional programming is out of scope of this project, so the documentation assumes you already know what FP is.

Help

If you need help with fp-ts check out:

Development

License

The MIT License (MIT)