Sha256: 282f98006ed7fa9bb2cd9bdbe2524595cfc4bcd58a0bb3232e4519f2138df811
Contents?: true
Size: 1.08 KB
Versions: 29
Compression:
Stored size: 1.08 KB
Contents
export type HMRPayload = | ConnectedPayload | UpdatePayload | FullReloadPayload | CustomPayload | ErrorPayload | PrunePayload export interface ConnectedPayload { type: 'connected' } export interface UpdatePayload { type: 'update' updates: Update[] } export interface Update { type: 'js-update' | 'css-update' path: string acceptedPath: string timestamp: number /** @internal */ explicitImportRequired?: boolean /** @internal */ isWithinCircularImport?: boolean /** @internal */ ssrInvalidates?: string[] } export interface PrunePayload { type: 'prune' paths: string[] } export interface FullReloadPayload { type: 'full-reload' path?: string /** @internal */ triggeredBy?: string } export interface CustomPayload { type: 'custom' event: string data?: any } export interface ErrorPayload { 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 } } }
Version data entries
29 entries across 29 versions & 2 rubygems