Skip to content

Commit

Permalink
fix: return type of handleHMRUpdate (#8367)
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed May 29, 2022
1 parent 4b1a22c commit 79d5ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/hmr.ts
Expand Up @@ -41,7 +41,7 @@ export function getShortName(file: string, root: string): string {
export async function handleHMRUpdate(
file: string,
server: ViteDevServer
): Promise<any> {
): Promise<void> {
const { ws, config, moduleGraph } = server
const shortFile = getShortName(file, config.root)
const fileName = path.basename(file)
Expand Down

0 comments on commit 79d5ce1

Please sign in to comment.