deno.land / x / rambda@v9.1.1 / source / applySpec-spec.ts

applySpec-spec.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import {multiply, applySpec, inc, dec, add} from 'rambda'
describe('applySpec', () => { it('ramda 1', () => { const result = applySpec({ v: inc, u: dec, })(1) result // $ExpectType { v: number; u: number; } }) it('ramda 1', () => { interface Output { sum: number, multiplied: number, } const result = applySpec<Output>({ sum: add, multiplied: multiply, })(1, 2)
result // $ExpectType Output })})
rambda

Version Info

Tagged at
2 months ago