UNPKG

winterspec

Version:

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

17 lines (16 loc) 724 B
import type { WinterSpecConfig } from "../config/config.js"; import { StartHeadlessDevServerOptions } from "./headless/start-server.js"; export type StartDevServerOptions = { rootDirectory?: string; config?: WinterSpecConfig; port?: number; } & Pick<StartHeadlessDevServerOptions, "middleware" | "onListening" | "onBuildStart" | "onBuildEnd">; /** * Start an WinterSpec dev server. It will continuously watch your code and rebuild on changes. (This is the same function called by `winterspec dev`.) * * This must be run within a native context (Node.js, Bun, or Deno). */ export declare const startDevServer: (options: StartDevServerOptions) => Promise<{ port: string; stop: () => Promise<void>; }>;