UNPKG

@js-primer/local-server

Version:
16 lines (15 loc) 369 B
/// <reference types="node" /> import * as http from "http"; export interface LocalServerOptions { rootDir?: string; port?: number; } export declare class LocalServer { server: http.Server; private rootDir; private port; constructor(options: LocalServerOptions); get appName(): string; start(): Promise<http.Server>; stop(): void; }