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.

14 lines (9 loc) 277 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 type MF<T, U> = (v?: any)=> Pr<U>; //Copyright (c) 2017 Alex Tranchenko. All rights reserved.