st-bundle
Version:
CLI for watching and bundling SpringType projects.
16 lines (15 loc) • 655 B
TypeScript
import { Context } from '../core/Context';
import { IHMRServerProps } from './devServerProps';
export interface ISocketClientInterface {
onMessage?: (fn: (name: string, payload: any) => void) => void;
sendEvent(name: string, payload?: any, ws_instance?: WebSocket): any;
getClient(): WebSocket;
}
export declare function createClient(client: any): ISocketClientInterface;
export declare type HMRServerMethods = ISocketClientInterface & {};
export interface ICreateHMRServerProps {
internalServer?: any;
ctx: Context;
opts: IHMRServerProps;
}
export declare function createHMRServer(props: ICreateHMRServerProps): HMRServerMethods;