Skip to content

Commit

Permalink
v2.0.06
Browse files Browse the repository at this point in the history
Fix `window.Routes` from `routes.ts` auto-generated file
  • Loading branch information
ewilan-riviere committed Apr 15, 2024
1 parent f0af214 commit a914e05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kiwilan/typescriptable-laravel",
"description": "PHP package for Laravel to type Eloquent models, routes, Spatie Settings with autogenerated TypeScript. If you want to use some helpers with Inertia, you can install associated NPM package.",
"version": "2.0.05",
"version": "2.0.06",
"keywords": [
"kiwilan",
"laravel",
Expand Down
3 changes: 1 addition & 2 deletions src/Typed/Route/TypeRouteListTs.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ interface Window {
const appUrl = '{$appUrl}'
if (typeof window !== 'undefined') {
if (typeof window !== 'undefined' && typeof window?.Routes !== 'undefined')
window.Routes = Routes
window.Routes = Routes
}
export { Routes, appUrl }
Expand Down

0 comments on commit a914e05

Please sign in to comment.