UNPKG

@joker.front/cli

Version:

The Next-Generation Front-End Toolchain: Swift, Efficient, and Adaptive.

47 lines (46 loc) 1.06 kB
export declare namespace IHMRType { type All = Connected | Custom | Error | Reload | Prune | Update; interface Connected { type: "connected"; } interface Custom { type: "custom"; event: string; data?: any; } interface Error { type: "error"; err: { [name: string]: any; message: string; stack: string; id?: string; frame?: string; plugin?: string; pluginCode?: string; loc?: { file?: string; line: number; column: number; }; }; } interface Reload { path?: string; type: "reload"; } interface Prune { type: "prune"; paths: string[]; } interface Update { type: "update"; updates: UpdateItem[]; } interface UpdateItem { type: "js-update" | "css-update"; path: string; acceptedPath: string; timestamp: number; } }