UNPKG

@whatwg-node/router

Version:
9 lines (8 loc) 540 B
import { ServerAdapterOptions } from '@whatwg-node/server'; import type { Router, RouterBaseObject } from './types'; interface RouterOptions<TServerContext = {}> extends ServerAdapterOptions<TServerContext> { base?: string; } export declare function createRouterBase<TServerContext = {}>({ fetchAPI: givenFetchAPI, base: basePath, }?: RouterOptions<TServerContext>): RouterBaseObject<TServerContext>; export declare function createRouter<TServerContext = {}>(options?: RouterOptions<TServerContext>): Router<TServerContext>; export {};