From 277a49548850b0a1eaaaddda24615543fc577f8f Mon Sep 17 00:00:00 2001 From: Marceli Pawlinski Date: Tue, 4 Aug 2026 08:42:35 +0100 Subject: [PATCH] fix: type rawBody as optional since it can be undefined --- src/body-parser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/body-parser.ts b/src/body-parser.ts index cf061be..f52be2e 100644 --- a/src/body-parser.ts +++ b/src/body-parser.ts @@ -10,7 +10,7 @@ declare module 'koa' { // eslint-disable-next-line @typescript-eslint/consistent-type-definitions interface Request { body?: unknown; - rawBody: string; + rawBody?: string; } } @@ -18,7 +18,7 @@ declare module 'http' { // eslint-disable-next-line @typescript-eslint/consistent-type-definitions interface IncomingMessage { body?: unknown; - rawBody: string; + rawBody?: string; } } /**