Skip to content

Commit f001991

Browse files
Merge pull request #79 from kiwilan/develop
v3.1.01
2 parents 4d4c4d8 + 0e2b335 commit f001991

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ This version requires [PHP](https://www.php.net/) `8.2+` and supports [Laravel](
5757
5858
| Version | L9 | L10 | L11 |
5959
| --------------------------------------------------------------------------------- | ------------------ | ------------------ | ------------------ |
60-
| [v1.12.03](https://packagist.org/packages/kiwilan/typescriptable-laravel#1.12.03) | :white_check_mark: | :white_check_mark: | :x: |
6160
| [v3+](https://packagist.org/packages/kiwilan/typescriptable-laravel) | :x: | :x: | :white_check_mark: |
61+
| [v1.12.03](https://packagist.org/packages/kiwilan/typescriptable-laravel#1.12.03) | :white_check_mark: | :white_check_mark: | :x: |
6262

6363
You can install the package via composer:
6464

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kiwilan/typescriptable-laravel",
33
"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.",
4-
"version": "3.1.0",
4+
"version": "3.1.01",
55
"keywords": [
66
"kiwilan",
77
"laravel",

docs/banner.jpg

38.6 KB
Loading

src/Typed/Route/Printer/PrinterRouteTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private function parseRouteParams(): string
113113
->map(fn (RouteTypeItemParam $param) => "'{$param->name()}': App.Route.ParamType")
114114
->join("\n ");
115115

116-
return " '$name}': {\n {$params}\n }";
116+
return " '{$name}': {\n {$params}\n }";
117117
} else {
118118
return " '{$name}': never";
119119
}

src/Typed/Route/RouteType.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ public function typescriptTypes(): ?string
6868
private function parseRoutes(): Collection
6969
{
7070
if ($this->config->json === null) {
71-
Artisan::call(RouteListCommand::class);
71+
Artisan::call(RouteListCommand::class, [
72+
'--json' => true,
73+
]);
7274
$json = Artisan::output();
7375
$this->config->json = json_decode($json, true);
7476
}

0 commit comments

Comments
 (0)