Skip to content

Commit 89bda94

Browse files
authored
fix: fix the return type of responseViaCache (#234)
1 parent c32bab2 commit 89bda94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/listener.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const handleResponseError = (e: unknown, outgoing: ServerResponse | Http2ServerR
4747
const responseViaCache = (
4848
res: Response,
4949
outgoing: ServerResponse | Http2ServerResponse
50-
): undefined | Promise<undefined> => {
50+
): undefined | Promise<undefined | void> => {
5151
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5252
const [status, body, header] = (res as any)[cacheKey]
5353
if (typeof body === 'string') {

0 commit comments

Comments
 (0)