diff --git a/src/Actions/GenerateCliOutput.php b/src/Actions/GenerateCliOutput.php index abafd6c..b7b55f9 100644 --- a/src/Actions/GenerateCliOutput.php +++ b/src/Actions/GenerateCliOutput.php @@ -99,6 +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"; $this->output .= $entry; }); diff --git a/src/ModelInterface.php b/src/ModelInterface.php index 33e5fea..b1a40c4 100644 --- a/src/ModelInterface.php +++ b/src/ModelInterface.php @@ -270,6 +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"; return $code; }