@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

Readme

Keywords

Package Sidebar

Install

npm i @typed/compose

Weekly Downloads

96

Version

1.0.0

License

MIT

Last publish

Collaborators

  • typed