UNPKG

monad-ts

Version:

Monad-ts is a small library implements some of key monads and way to chain them in a pipe (flow) in JavaScript and TypeScript. Angular 2+ compatible.

9 lines (8 loc) 220 B
/** * MF<T, U> - transformation function's type. * @public * @typedef {function(v: T): Pr<U>} MF<T,U> */ /** Comment for ESDoc */ import { Pr } from "./pr"; export declare type MF<T, U> = (v?: any) => Pr<U>;