Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Nov 5, 2024
1 parent 4b1030f commit 7cd4771
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/uploadthing/src/h3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <TErrorShape extends Json>(
opts?: CreateBuilderOptions<TErrorShape>,
Expand Down
6 changes: 5 additions & 1 deletion packages/uploadthing/src/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <TErrorShape extends Json>(
opts?: CreateBuilderOptions<TErrorShape>,
Expand Down
6 changes: 5 additions & 1 deletion packages/uploadthing/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <TErrorShape extends Json>(
opts?: CreateBuilderOptions<TErrorShape>,
Expand Down

0 comments on commit 7cd4771

Please sign in to comment.