uploadthing
Version:
Learn more: [docs.uploadthing.com](https://docs.uploadthing.com)
31 lines (27 loc) • 1.33 kB
TypeScript
import { FileRouter, RouteHandlerOptions, UTFiles, UTRegion, UnsetMarker, UploadBuilder } from "../dist/types-Cwclb_Oq.js";
import { CreateBuilderOptions } from "../dist/upload-builder-CLL_3_tk.js";
import * as _uploadthing_shared32 from "@uploadthing/shared";
import { Json } from "@uploadthing/shared";
import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify";
//#region src/fastify.d.ts
type AdapterArgs = {
req: FastifyRequest;
res: FastifyReply;
};
declare const createUploadthing: <TErrorShape extends Json>(opts?: CreateBuilderOptions<TErrorShape>) => <TRouteOptions extends _uploadthing_shared32.RouteOptions>(input: _uploadthing_shared32.FileRouterInputConfig, config?: TRouteOptions | undefined) => UploadBuilder<{
_routeOptions: TRouteOptions;
_input: {
in: UnsetMarker;
out: UnsetMarker;
};
_metadata: UnsetMarker;
_adapterFnArgs: AdapterArgs;
_errorShape: TErrorShape;
_errorFn: UnsetMarker;
_output: UnsetMarker;
}>;
declare const createRouteHandler: <TRouter extends FileRouter>(fastify: FastifyInstance, opts: RouteHandlerOptions<TRouter>, done: (err?: Error) => void) => void;
//#endregion
//# sourceMappingURL=fastify.d.ts.map
export { FileRouter, UTFiles, createRouteHandler, createUploadthing, UTRegion as experimental_UTRegion };
//# sourceMappingURL=index.d.ts.map