Skip to content

Commit

Permalink
fix: TypeScript Errors in SSR Setup with Ziggy Props when Builds (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
akr4m authored Oct 17, 2024
1 parent abac4c3 commit 9498185
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stubs/inertia-react-ts/resources/js/ssr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ createServer((page) =>
// @ts-expect-error
global.route<RouteName> = (name, params, absolute) =>
route(name, params as any, absolute, {
// @ts-expect-error
...page.props.ziggy,
// @ts-expect-error
location: new URL(page.props.ziggy.location),
});
/* eslint-enable */
Expand Down

0 comments on commit 9498185

Please sign in to comment.