Skip to content

Commit

Permalink
revert exports of types
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Jan 29, 2024
1 parent 595368c commit 3ce6eff
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/uploadthing/src/internal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type DistributiveOmit<TObj, TKey extends keyof any> = TObj extends any

//
// Package
export type ResolverOptions<TParams extends AnyParams> = {
type ResolverOptions<TParams extends AnyParams> = {
metadata: Simplify<
TParams["_metadata"] extends UnsetMarker ? undefined : TParams["_metadata"]
>;
Expand All @@ -54,7 +54,7 @@ export interface AnyParams {
_output: any;
}

export type MiddlewareFn<
type MiddlewareFn<
TInput extends Json | UnsetMarker,
TOutput extends Record<string, unknown>,
TArgs extends MiddlewareFnArgs<any, any, any>,
Expand All @@ -65,12 +65,11 @@ export type MiddlewareFn<
},
) => MaybePromise<TOutput>;

export type ResolverFn<
TOutput extends Json | void,
TParams extends AnyParams,
> = (opts: ResolverOptions<TParams>) => MaybePromise<TOutput>;
type ResolverFn<TOutput extends Json | void, TParams extends AnyParams> = (
opts: ResolverOptions<TParams>,
) => MaybePromise<TOutput>;

export type UploadErrorFn = (input: {
type UploadErrorFn = (input: {
error: UploadThingError;
fileKey: string;
}) => void;
Expand Down

0 comments on commit 3ce6eff

Please sign in to comment.