UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

21 lines 480 B
import type { StoryContext } from './types'; /** * Create and start the story server */ export declare function createStoryServer(ctx: StoryContext, options: ServerOptions): Promise<StoryServer>; /** * Server options */ export declare interface ServerOptions { port: number open?: boolean host?: string | boolean } /** * Story server instance */ export declare interface StoryServer { server: ReturnType<typeof Bun.serve> url: string close: () => Promise<void> }