Skip to content

Commit 19728be

Browse files
committed
fix: typing for upsertDocument method in node to fix build error
1 parent 0968928 commit 19728be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SDK/Language/Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getTypeName(array $parameter, array $method = []): string
5959
if ($method['method'] === 'post') {
6060
return "Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Omit<Document, keyof Models.Document>";
6161
}
62-
if ($method['method'] === 'patch') {
62+
if ($method['method'] === 'patch' || $method['method'] === 'put') {
6363
return "Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Partial<Omit<Document, keyof Models.Document>>";
6464
}
6565
break;

0 commit comments

Comments
 (0)