@typescript-fp/compose
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

TypeScript FP Compose

Typescript FP

Curried compose functions with generic types

Usage

Requirements

  • ES6

Install

npm install @typescript-fp/compose

Example

import {composeFgGab as compose} from "@typescript-fp/compose"

const add = (a: number) => (b: number) => a + b;
const increment = add(1);
const composedFn = compose(increment)(add);

composedFn(5)(5)

Development

Requirements

  • Node.js
  • Typescript 3

Compile

npm run build

Tests

npm run test

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i @typescript-fp/compose

    Weekly Downloads

    1

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    164 kB

    Total Files

    286

    Last publish

    Collaborators

    • snubcube
    • terencewestphal