Skip to content

Commit

Permalink
test(appendFlipped): add tests for typescript typings
Browse files Browse the repository at this point in the history
Ref #978
  • Loading branch information
char0n committed Oct 6, 2019
1 parent d1036d1 commit e05ab63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions types/test/appendFlipped.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as RA from 'ramda-adjunct';

RA.appendFlipped([1, 2], 3); // $ExpectType number[]
RA.appendFlipped(['a', 'b'], 'c'); // $ExpectType string[]
RA.appendFlipped(['a', 2], 3); // $ExpectType (string | number)[]
RA.appendFlipped<number>([1, 2], 3); // $ExpectType number[]
RA.appendFlipped<string>(['a', 'b'], 'c'); // $ExpectType string[]

0 comments on commit e05ab63

Please sign in to comment.