From 1cf13034076f7407d75219d5ba9392b813a2c25f Mon Sep 17 00:00:00 2001 From: "Kevin R. Whitley" Date: Sat, 28 Oct 2023 14:11:27 -0500 Subject: [PATCH] Spacing :) --- src/withContent.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/withContent.ts b/src/withContent.ts index 92cc8af3..06c93d3c 100644 --- a/src/withContent.ts +++ b/src/withContent.ts @@ -1,11 +1,11 @@ -import {IRequest, IRequestStrict} from './Router' +import { IRequest, IRequestStrict } from './Router' + +export type HasContent = { + content: ContentType, +} & IRequestStrict // withContent - embeds any request body as request.content export const withContent = async (request: IRequest): Promise => { if (request.headers.get('content-type')?.includes('json')) request.content = await request.json() } - -export type HasContent = { - content: ContentType, -} & IRequestStrict