deno.land / x / rambda@v9.1.1 / source / min-spec.ts
123456789101112131415161718192021222324import {min} from 'rambda'
const first = 1const second = 2
describe('R.min', () => { it('happy', () => { const result = min(first, second) result // $ExpectType 1 | 2 }) it('curried', () => { const result = min(first, second) result // $ExpectType 1 | 2 }) it('curried - cann pass type', () => { const result = min<number>(first, second) result // $ExpectType number }) it('can pass type', () => { const result = min<number>(first, second) result // $ExpectType number })})
Version Info