Skip to main content
Module

x/rambda/composeAsync-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {delay, composeAsync} from 'rambda'
describe('R.composeAsync', () => { it('happy', async() => { const result = await composeAsync<number>( async x => { await delay(100) return x + 2 }, x => x.length + 10 )([1, 2])
result // $ExpectType number })})