UNPKG

@mcansh/remix-fastify

Version:

Fastify server request handler for Remix and React Router

13 lines (12 loc) 930 B
import { GetLoadContextFunction, HttpServer, PluginOptions, RequestHandler, createRemixRequestHandler } from "./index-lgG-KloC.js"; import { AppLoadContext, ServerBuild } from "@remix-run/node"; import * as fastify4 from "fastify"; //#region src/plugins/remix.d.ts type RemixFastifyOptions = Omit<PluginOptions<HttpServer, AppLoadContext, ServerBuild>, "virtualModule">; declare const remixFastify: fastify4.FastifyPluginCallback<RemixFastifyOptions, fastify4.RawServerDefault, fastify4.FastifyTypeProviderDefault, fastify4.FastifyBaseLogger>; //#endregion //#region src/remix.d.ts type GetLoadContextFunction$1<Server extends HttpServer> = GetLoadContextFunction<Server, AppLoadContext>; //#endregion export { GetLoadContextFunction$1 as GetLoadContextFunction, RemixFastifyOptions, RequestHandler, createRemixRequestHandler, createRemixRequestHandler as createRequestHandler, remixFastify }; //# sourceMappingURL=index.d.ts.map