Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jul 19, 2024
1 parent 01246e5 commit 0da251b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/vite/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@ export type {
TransformOptions,
TransformResult,
} from './server/transformRequest'
export type { HmrOptions, HmrContext, HotUpdateContext } from './server/hmr'
export type {
HmrOptions,
HmrContext,
HotUpdateContext,
HotUpdateOptions,
} from './server/hmr'

export type {
// deprecated, remove in Vite 7
Expand Down
3 changes: 3 additions & 0 deletions packages/vite/src/node/server/hmr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ export interface HotUpdateOptions {
environment: DevEnvironment
}

/** @deprecated use `HotUpdateOptions` instead */
export type HotUpdateContext = HotUpdateOptions

/**
* @deprecated
* Used by handleHotUpdate for backward compatibility with mixed client and ssr moduleGraph
Expand Down

0 comments on commit 0da251b

Please sign in to comment.