Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Sep 26, 2024
1 parent 7682fca commit 2a58aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/start/src/router/lazyRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { appendStyles, cleanupStyles, preloadStyles, updateStyles } from "vinxi/
import { renderAsset } from "../server/renderAsset";
import { Asset } from "../server/types";

export default function lazyRoute<T>(component: any, clientManifest: any, serverManifest: any, exported = "default") {
export default function lazyRoute<T extends Record<string, any>>(component: any, clientManifest: any, serverManifest: any, exported = "default") {
return lazy(async () => {
if (import.meta.env.DEV) {
let manifest = import.meta.env.SSR ? serverManifest : clientManifest;
Expand Down

0 comments on commit 2a58aa7

Please sign in to comment.