Skip to content

Commit 17206d7

Browse files
committed
Change lastCall return type to CallLog | undefined
1 parent b63230f commit 17206d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/fetch-mock/src/CallHistory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class CallHistory {
127127
called(filter?: CallHistoryFilter, options?: RouteConfig): boolean {
128128
return Boolean(this.calls(filter, options).length);
129129
}
130-
lastCall(filter?: CallHistoryFilter, options?: RouteConfig): CallLog | void {
130+
lastCall(filter?: CallHistoryFilter, options?: RouteConfig): CallLog | undefined {
131131
return this.calls(filter, options).pop();
132132
}
133133

0 commit comments

Comments
 (0)