All Projects → TylorS → typed-compose

TylorS / typed-compose

Licence: MIT license
Well-typed compose function for TypeScript

Programming Languages

typescript
32286 projects

@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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].