Skip to content

Commit

Permalink
docs(api-javascript): update transformIndexHtml types (#15806)
Browse files Browse the repository at this point in the history
Co-authored-by: bluwy <[email protected]>
  • Loading branch information
houhongxu and bluwy authored Feb 6, 2024
1 parent 775bb50 commit 37382d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/guide/api-javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ interface ViteDevServer {
/**
* Apply Vite built-in HTML transforms and any plugin HTML transforms.
*/
transformIndexHtml(url: string, html: string): Promise<string>
transformIndexHtml(
url: string,
html: string,
originalUrl?: string,
): Promise<string>
/**
* Load a given URL as an instantiated module for SSR.
*/
Expand Down

0 comments on commit 37382d1

Please sign in to comment.