We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b57cf9 commit 34b7887Copy full SHA for 34b7887
1 file changed
src/SDK/Language/Web.php
@@ -242,6 +242,9 @@ public function getTypeName(array $parameter, array $method = []): string
242
return 'Models.' . $this->toPascalCase($parameter['array']['model']) . '[]';
243
}
244
if (!empty($parameter['model'])) {
245
+ if ($parameter['model'] === 'any') {
246
+ return $parameter['type'] === self::TYPE_ARRAY ? 'Record<string, any>[]' : 'Record<string, any>';
247
+ }
248
$modelType = 'Models.' . $this->toPascalCase($parameter['model']);
249
return $parameter['type'] === self::TYPE_ARRAY ? $modelType . '[]' : $modelType;
250
0 commit comments