Sha256: cbe726263ae9a7bf32352380f7e8ab66ee25b3457137e316929269c19e18a2be
Contents?: true
Size: 1003 Bytes
Versions: 26
Compression:
Stored size: 1003 Bytes
Contents
import type { InferCustomEventPayload } from './customEvent' export type ModuleNamespace = Record<string, any> & { [Symbol.toStringTag]: 'Module' } export interface ViteHotContext { readonly data: any accept(): void accept(cb: (mod: ModuleNamespace | undefined) => void): void accept(dep: string, cb: (mod: ModuleNamespace | undefined) => void): void accept( deps: readonly string[], cb: (mods: Array<ModuleNamespace | undefined>) => void, ): void acceptExports( exportNames: string | readonly string[], cb?: (mod: ModuleNamespace | undefined) => void, ): void dispose(cb: (data: any) => void): void prune(cb: (data: any) => void): void invalidate(message?: string): void on<T extends string>( event: T, cb: (payload: InferCustomEventPayload<T>) => void, ): void off<T extends string>( event: T, cb: (payload: InferCustomEventPayload<T>) => void, ): void send<T extends string>(event: T, data?: InferCustomEventPayload<T>): void }
Version data entries
26 entries across 26 versions & 1 rubygems