From 855847ea5f8970722472879f62e25269ac5a64dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ewilan=20Rivi=C3=A8re?= Date: Sat, 30 Mar 2024 17:59:21 +0100 Subject: [PATCH] v2.0.02 Fix `window.Routes = Routes` for `routes.ts` --- composer.json | 2 +- src/Typed/Route/TypeRouteListTs.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 6283f27..2a135b4 100644 --- a/composer.json +++ b/composer.json @@ -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.01", + "version": "2.0.02", "keywords": [ "kiwilan", "laravel", diff --git a/src/Typed/Route/TypeRouteListTs.php b/src/Typed/Route/TypeRouteListTs.php index dcf26df..a84fc7c 100644 --- a/src/Typed/Route/TypeRouteListTs.php +++ b/src/Typed/Route/TypeRouteListTs.php @@ -59,7 +59,7 @@ interface Window { if (typeof window !== 'undefined') { if (typeof window !== undefined && typeof window?.Routes !== undefined) - window?.Routes = Routes + window.Routes = Routes } export { Routes, appUrl }