From 7cd4771136af2ded01c100c48ab1b6eb336f5f3c Mon Sep 17 00:00:00 2001 From: juliusmarminge Date: Tue, 5 Nov 2024 23:42:20 +0100 Subject: [PATCH] format --- packages/uploadthing/src/h3.ts | 6 +++++- packages/uploadthing/src/next.ts | 6 +++++- packages/uploadthing/src/server.ts | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/uploadthing/src/h3.ts b/packages/uploadthing/src/h3.ts index ab9ebf170..c78a5b163 100644 --- a/packages/uploadthing/src/h3.ts +++ b/packages/uploadthing/src/h3.ts @@ -12,7 +12,11 @@ import type { FileRouter, RouteHandlerOptions } from "./types"; export { UTFiles } from "./internal/types"; export type { FileRouter }; -type AdapterArgs = { req: undefined; res: undefined; event: H3Event }; +type AdapterArgs = { + req: undefined; + res: undefined; + event: H3Event; +}; export const createUploadthing = ( opts?: CreateBuilderOptions, diff --git a/packages/uploadthing/src/next.ts b/packages/uploadthing/src/next.ts index bd74eb4a7..526282582 100644 --- a/packages/uploadthing/src/next.ts +++ b/packages/uploadthing/src/next.ts @@ -11,7 +11,11 @@ import type { FileRouter, RouteHandlerOptions } from "./types"; export type { FileRouter }; export { UTFiles } from "./internal/types"; -type AdapterArgs = { req: NextRequest; res: undefined; event: undefined }; +type AdapterArgs = { + req: NextRequest; + res: undefined; + event: undefined; +}; export const createUploadthing = ( opts?: CreateBuilderOptions, diff --git a/packages/uploadthing/src/server.ts b/packages/uploadthing/src/server.ts index 70458f80d..ca58b84e1 100644 --- a/packages/uploadthing/src/server.ts +++ b/packages/uploadthing/src/server.ts @@ -14,7 +14,11 @@ export { UTApi } from "./sdk"; export { UTFile } from "./sdk/ut-file"; export { UploadThingError, type FileRouter }; -type AdapterArgs = { req: Request; res: undefined; event: undefined }; +type AdapterArgs = { + req: Request; + res: undefined; + event: undefined; +}; export const createUploadthing = ( opts?: CreateBuilderOptions,