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.

11 lines (8 loc) 234 B
/** * D<T> - dispatcher's type function. * @public * @typedef {function(v: T): Boolean} D<T> */ /** Comment for ESDoc */ export type D<T> = (v: T) => boolean; //Copyright (c) 2017 Alex Tranchenko. All rights reserved.