Have ideas to improve npm?Join in the discussion! »

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

    1.0.0 • Public • Published

    @typed/compose

    Well-typed compose function for TypeScript

    Let me have it

    npm install --save @typed/compose
    # or 
    yarn add @typed/compose

    Basic usage

    import { compose } from '@typed/compose';
     
    function squared (x: number): number {
      return x * x;
    }
     
    console.log(compose(squared, squared)(2)) // 16

    Keywords

    Install

    npm i @typed/compose

    DownloadsWeekly Downloads

    355

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar