Skip to content

Commit

Permalink
Fix TS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Feb 18, 2025
1 parent 8be0d6d commit 13f51eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/builtins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from "~";

const isEven = (n: number) => n % 2 === 0;
const isEvenIndex = (_, index: number) => index % 2 === 0;
const isEvenIndex = (_: unknown, index: number) => index % 2 === 0;

function isNum(value: unknown): value is number {
return typeof value === "number";
Expand Down
2 changes: 1 addition & 1 deletion test/itertools.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
} from "~";

const isEven = (x: number) => x % 2 === 0;
const isEvenIndex = (_, index: number) => index % 2 === 0;
const isEvenIndex = (_: unknown, index: number) => index % 2 === 0;
const isPositive = (x: number) => x >= 0;

function isNum(value: unknown): value is number {
Expand Down
2 changes: 1 addition & 1 deletion test/more-itertools.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import * as fc from "fast-check";

const isEven = (x: number) => x % 2 === 0;
const isEvenIndex = (_, index: number) => index % 2 === 0;
const isEvenIndex = (_: unknown, index: number) => index % 2 === 0;
const isPositive = (x: number) => x >= 0;

function isNum(value: unknown): value is number {
Expand Down

0 comments on commit 13f51eb

Please sign in to comment.