| 123456789101112131415161718192021222324252627282930313233 |
- export declare type HMRPayload = ConnectedPayload | UpdatePayload | FullReloadPayload | StyleRemovePayload | SWBustCachePayload | CustomPayload | MultiUpdatePayload;
- interface ConnectedPayload {
- type: 'connected';
- }
- export interface UpdatePayload {
- type: 'js-update' | 'vue-reload' | 'vue-rerender' | 'style-update';
- path: string;
- changeSrcPath: string;
- timestamp: number;
- }
- interface StyleRemovePayload {
- type: 'style-remove';
- path: string;
- id: string;
- }
- interface FullReloadPayload {
- type: 'full-reload';
- path: string;
- }
- interface SWBustCachePayload {
- type: 'sw-bust-cache';
- path: string;
- }
- interface CustomPayload {
- type: 'custom';
- id: string;
- customData: any;
- }
- export interface MultiUpdatePayload {
- type: 'multi';
- updates: UpdatePayload[];
- }
- export {};
|