Skip to content

Commit f57e205

Browse files
Fix return type of buffer()
1 parent 198fbc6 commit f57e205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/zap.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export interface RequestBodyOptions {
8585
encoding?: string
8686
}
8787

88-
const requestBodyMap = new WeakMap()
88+
const requestBodyMap = new WeakMap<ServerRequest, Buffer>()
8989

9090
export async function buffer(req: ServerRequest, {limit = '1mb', encoding}: RequestBodyOptions = {}) {
9191
const type = req.headers['content-type'] ?? 'text/plain'

0 commit comments

Comments
 (0)