UNPKG

@mcansh/remix-fastify

Version:

Fastify server request handler for Remix and React Router

13 lines (12 loc) 996 B
import { GetLoadContextFunction, HttpServer, PluginOptions, RequestHandler, createReactRouterRequestHandler } from "./index-lgG-KloC.js"; import { AppLoadContext, ServerBuild } from "react-router"; import * as fastify0 from "fastify"; //#region src/plugins/react-router.d.ts type ReactRouterFastifyOptions = Omit<PluginOptions<HttpServer, AppLoadContext, ServerBuild>, "virtualModule">; declare const reactRouterFastify: fastify0.FastifyPluginCallback<ReactRouterFastifyOptions, fastify0.RawServerDefault, fastify0.FastifyTypeProviderDefault, fastify0.FastifyBaseLogger>; //#endregion //#region src/react-router.d.ts type GetLoadContextFunction$1<Server extends HttpServer> = GetLoadContextFunction<Server, AppLoadContext>; //#endregion export { GetLoadContextFunction$1 as GetLoadContextFunction, ReactRouterFastifyOptions, RequestHandler, createReactRouterRequestHandler, createReactRouterRequestHandler as createRequestHandler, reactRouterFastify }; //# sourceMappingURL=react-router.d.ts.map