diff --git a/src/utils/body.ts b/src/utils/body.ts index 52cd9150..d344e456 100644 --- a/src/utils/body.ts +++ b/src/utils/body.ts @@ -1,6 +1,6 @@ import destr from "destr"; -import type { Encoding, HTTPMethod } from "../types"; import type { H3Event } from "../event"; +import type { Encoding, HTTPMethod } from "../types"; import { parse as parseMultipartData } from "./internal/multipart"; import { assertMethod, getRequestHeader } from "./request"; @@ -77,7 +77,7 @@ export function readRawBody( * const body = await readBody(req) * ``` */ -export async function readBody(event: H3Event): Promise { +export async function readBody(event: H3Event): Promise { if (ParsedBodySymbol in event.node.req) { return (event.node.req as any)[ParsedBodySymbol]; }