elm-doc-preview
Version:
Elm offline documentation previewer with hot reloading.
30 lines (29 loc) • 712 B
TypeScript
interface Options {
address: string;
debug: boolean;
dir: string;
port: number;
browser: boolean;
reload: boolean;
}
declare class DocServer {
options: Options;
private elm;
private elmVersion;
private elmCache;
private app;
private ws;
private wss;
private manifest;
constructor(options?: Options);
private setupWebServer;
private setupFilesWatcher;
private onChange;
private sendReadme;
private sendManifest;
private sendDocs;
listen(): import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>;
make(filename: string): void;
private broadcast;
}
export default DocServer;