From 24155c58e015ccebf1e4ed235e5c4d2c16069bb8 Mon Sep 17 00:00:00 2001 From: kevin olson Date: Sun, 22 Jan 2023 02:55:48 -0600 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20add=20modified=20result=20as=20well?= =?UTF-8?q?=20-=20not=20pluralized?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Actions/GenerateCliOutput.php | 2 +- src/ModelInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Actions/GenerateCliOutput.php b/src/Actions/GenerateCliOutput.php index b7b55f9..8a0623e 100644 --- a/src/Actions/GenerateCliOutput.php +++ b/src/Actions/GenerateCliOutput.php @@ -99,7 +99,7 @@ public function __invoke(Collection $models, bool $global = false): string $plural = Str::plural($name); $entry .= "{$this->indent}export type $plural = {$name}[]\n"; $entry .= "{$this->indent}export type {$name}Results = Modify\n\n"; - $entry .= "{$this->indent}export type {$name}Modified = Modify\n\n"; + $entry .= "{$this->indent}export type {$name}Modified = Modify\n\n"; $this->output .= $entry; }); diff --git a/src/ModelInterface.php b/src/ModelInterface.php index b1a40c4..dfc3492 100644 --- a/src/ModelInterface.php +++ b/src/ModelInterface.php @@ -270,7 +270,7 @@ private function getCode(TypescriptInterface $interface): string $plural = Str::plural($interface->name); $code .= "{$this->space}export type $plural = {$interface->name}[]\n"; $code .= "{$this->space}export type {$interface->name}Results = Modify\n\n"; - $code .= "{$this->space}export type {$interface->name}Modified = Modify\n\n"; + $code .= "{$this->space}export type {$interface->name}Modified = Modifyname} }>\n\n"; return $code; }