UNPKG

winterspec

Version:

Write Winter-CG compatible routes with filesystem routing and tons of features

7 lines (6 loc) 753 B
/// <reference types="node" resolution-mode="require"/> import { type TransformToNodeOptions } from "../edge/transform-to-node.js"; import { WinterSpecRouteFn } from "../types/web-handler.js"; import { WinterSpecRouteBundle, WinterSpecOptions } from "../types/winter-spec.js"; export declare const createWinterSpecFromRouteMap: (routeMap: Record<string, WinterSpecRouteFn>, winterSpecOptions?: Partial<WinterSpecOptions>) => WinterSpecRouteBundle; export declare const createNodeServerFromRouteMap: (routeMap: Record<string, WinterSpecRouteFn>, transformToNodeOptions: TransformToNodeOptions, winterSpecOptions?: Partial<WinterSpecOptions>) => Promise<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>>;