Skip to content

Commit

Permalink
Change lastCall return type to CallLog | undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
luhn committed Jan 9, 2025
1 parent b63230f commit 17206d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fetch-mock/src/CallHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class CallHistory {
called(filter?: CallHistoryFilter, options?: RouteConfig): boolean {
return Boolean(this.calls(filter, options).length);
}
lastCall(filter?: CallHistoryFilter, options?: RouteConfig): CallLog | void {
lastCall(filter?: CallHistoryFilter, options?: RouteConfig): CallLog | undefined {
return this.calls(filter, options).pop();
}

Expand Down

0 comments on commit 17206d7

Please sign in to comment.