@cwagner22/react-router-hono
Version:
React Router Hono Server
19 lines (16 loc) • 823 B
TypeScript
import * as hono from 'hono';
import { Env, MiddlewareHandler } from 'hono';
import * as hono_types from 'hono/types';
import { BlankEnv } from 'hono/types';
import { AddressInfo } from 'node:net';
import { H as HonoServerOptions } from './hono-server-C1WU6XJn.js';
import 'hono/hono-base';
import 'react-router';
type HonoNodeServerOptions<E extends Env = BlankEnv> = HonoServerOptions<E> & {
port?: number;
defaultLogger?: boolean;
listeningListener?: (info: AddressInfo) => void;
};
declare const cache: (seconds: number, immutable?: boolean) => MiddlewareHandler;
declare const createHonoNodeServer: <E extends Env = BlankEnv>(options?: HonoNodeServerOptions<E>) => Promise<hono.Hono<E, hono_types.BlankSchema, "/">>;
export { type HonoNodeServerOptions, HonoServerOptions, cache, createHonoNodeServer };