UNPKG

winterspec

Version:

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

17 lines (16 loc) 828 B
import { ResolvedWinterSpecConfig } from "../../config/utils.js"; import { ChannelOptions } from "birpc"; import { HttpServerRpcFunctions, type BundlerRpcFunctions } from "./types.js"; export interface StartHeadlessDevBundlerOptions { config: ResolvedWinterSpecConfig; initialRpcChannels?: ChannelOptions[]; } /** * Start a headless WinterSpec dev bundler. It will continuously watch your code and rebuild on changes. * For this to be useful, you'll probably want to also start a headless dev server. * This must be run within a native context (Node.js, Bun, or Deno). */ export declare const startHeadlessDevBundler: ({ config, initialRpcChannels, }: StartHeadlessDevBundlerOptions) => Promise<{ stop: () => Promise<void>; birpc: import("birpc").BirpcGroup<HttpServerRpcFunctions, BundlerRpcFunctions>; }>;