securityos/node_modules/next/dist/client/dev/error-overlay/websocket.d.ts

10 lines
381 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import type { HMR_ACTION_TYPES } from '../../../server/dev/hot-reloader-types';
type ActionCallback = (action: HMR_ACTION_TYPES) => void;
export declare function addMessageListener(callback: ActionCallback): void;
export declare function sendMessage(data: string): void;
export declare function connectHMR(options: {
path: string;
assetPrefix: string;
}): void;
export {};