From f57e2054985e2c7881d8673ee11212d259df3436 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Mon, 6 Dec 2021 17:04:30 +0000 Subject: [PATCH] Fix return type of buffer() --- src/zap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zap.ts b/src/zap.ts index 38cd2a4..f504e68 100644 --- a/src/zap.ts +++ b/src/zap.ts @@ -85,7 +85,7 @@ export interface RequestBodyOptions { encoding?: string } -const requestBodyMap = new WeakMap() +const requestBodyMap = new WeakMap() export async function buffer(req: ServerRequest, {limit = '1mb', encoding}: RequestBodyOptions = {}) { const type = req.headers['content-type'] ?? 'text/plain'