mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-07 15:09:12 +08:00
16 lines
404 B
Text
16 lines
404 B
Text
import type {
|
|
ErrorPayload,
|
|
FullReloadPayload,
|
|
PrunePayload,
|
|
UpdatePayload
|
|
} from './hmrPayload'
|
|
|
|
export interface CustomEventMap {
|
|
'vite:beforeUpdate': UpdatePayload
|
|
'vite:beforePrune': PrunePayload
|
|
'vite:beforeFullReload': FullReloadPayload
|
|
'vite:error': ErrorPayload
|
|
}
|
|
|
|
export type InferCustomEventPayload<T extends string> =
|
|
T extends keyof CustomEventMap ? CustomEventMap[T] : any
|