deno.land / x / rambda@v9.1.1 / source / max-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 {max} from 'rambda'
const first = 1const second = 2
describe('R.max', () => { it('happy', () => { const result = max(first, second) result // $ExpectType 1 | 2 }) it('curried', () => { const result = max(first, second) result // $ExpectType 1 | 2 }) it('curried - cann pass type', () => { const result = max<number>(first, second) result // $ExpectType number }) it('can pass type', () => { const result = max<number>(first, second) result // $ExpectType number })})
rambda

Version Info

Tagged at
2 months ago