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; } } /**