Skip to content

Commit b33fbf3

Browse files
committedMar 10, 2025·
test: fix typing
1 parent 0929897 commit b33fbf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/option.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ describe("Option", () => {
525525
it("calls the error function with the provided thisArg", () => {
526526
const input = None;
527527
const thisArg = { message: "error" };
528-
const errorFn = function () {
528+
const errorFn = function (this: typeof thisArg) {
529529
return this.message;
530530
};
531531
const result = input.okOrElse(errorFn, thisArg);

0 commit comments

Comments
 (0)
Please sign in to comment.