UNPKG

@sinclair/hammer

Version:

Build Tool for Browser and Node Applications

27 lines (26 loc) 716 B
import { Dispose } from '../dispose'; export interface ReloadServerOptions { targetDirectory: string; port: number; cors: boolean; sabs: boolean; } export declare class Server implements Dispose { private readonly options; private readonly clients; private readonly server; private readonly watcher; private readonly interval; private readonly script; constructor(options: ReloadServerOptions); private cors; private sharedArrayBuffer; private onReload; private onSignal; private onStatic; private onRequest; dispose(): void; private setupWatch; private keepAlive; } export declare function serve(options: ReloadServerOptions): Server;