Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Harris-Miller committed Jan 3, 2024
1 parent 1bbfa6a commit 081722b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/max.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ expectType<1 | 2>(max(1, 2));
const a: number = 1;
const b: number = 2;
expectType<number>(max(a, b));
// so I don't have to make a bunch of variables, we can just do that cast inline
// you can also upcast inline to get the same result
expectType<number>(max(1 as number, 2 as number));
// now check the other Ord types
expectType<string>(max('a' as string, 'b' as string));
Expand Down
2 changes: 1 addition & 1 deletion test/maxBy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ expectType<1 | 2>(maxBy(Math.abs, 1, 2));
const a: number = 1;
const b: number = 2;
expectType<number>(maxBy(Math.abs, a, b));
// so can also upcast inline to get the same result
// you can also upcast inline to get the same result
expectType<number>(maxBy(Math.abs, 1 as number, 2 as number));
// now check the other Ord types
expectType<Obj>(maxBy(prop('str'), {} as Obj, {} as Obj));
Expand Down
2 changes: 1 addition & 1 deletion test/min.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ expectType<1 | 2>(min(1, 2));
const a: number = 1;
const b: number = 2;
expectType<number>(min(a, b));
// so I don't have to make a bunch of variables, we can just do that cast inline
// you can also upcast inline to get the same result
expectType<number>(min(1 as number, 2 as number));
// now check the other Ord types
expectType<string>(min('a' as string, 'b' as string));
Expand Down
2 changes: 1 addition & 1 deletion test/minBy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ expectType<1 | 2>(minBy(Math.abs, 1, 2));
const a: number = 1;
const b: number = 2;
expectType<number>(minBy(Math.abs, a, b));
// so can also upcast inline to get the same result
// you can also upcast inline to get the same result
expectType<number>(minBy(Math.abs, 1 as number, 2 as number));
// now check the other Ord types
expectType<Obj>(minBy(prop('str'), {} as Obj, {} as Obj));
Expand Down

0 comments on commit 081722b

Please sign in to comment.