UNPKG

histoire

Version:

A fast story book powered by Vite

15 lines • 829 B
import type { ViteDevServer } from 'vite'; import type { Context } from '../context.js'; import type { useModuleLoader } from '../load.js'; import type { ExecutionService } from '../runtime/execution-service.js'; /** * Registers the `histoire:dev-event` websocket handler: the UI-triggered test * runs and the plugin `onDevEvent` hooks. * * @param ctx Histoire context, forwarded to the plugin API and the test runner. * @param server Client-facing Vite dev server owning the websocket. * @param moduleLoader Loader bound to the node-side collection server, handed * to the plugin API. */ export declare function registerDevEvents(ctx: Context, server: ViteDevServer, moduleLoader: ReturnType<typeof useModuleLoader>, execution?: ExecutionService, isActive?: () => boolean): void; //# sourceMappingURL=dev-events.d.ts.map