File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ public function getTypeName(array $parameter, array $method = []): string
57
57
return "Partial<Preferences> " ;
58
58
case 'document ' :
59
59
if ($ method ['method ' ] === 'post ' ) {
60
- return "Document extends Models.DefaultDocument ? Models.DataWithoutDocumentKeys : Omit<Document, keyof Models.Document> " ;
60
+ return "Document extends Models.DefaultDocument ? Partial< Models.Document> & Record<string, any> : Partial<Models.Document> & Partial< Omit<Document, keyof Models.Document> > " ;
61
61
}
62
62
if ($ method ['method ' ] === 'patch ' ) {
63
- return "Partial< Document extends Models.DefaultDocument ? Models.DataWithoutDocumentKeys : Omit<Document, keyof Models.Document>> " ;
63
+ return "Document extends Models.DefaultDocument ? Partial< Models.Document> & Record<string, any> : Partial<Models.Document> & Partial< Omit<Document, keyof Models.Document>> " ;
64
64
}
65
65
}
66
66
break ;
Original file line number Diff line number Diff line change @@ -222,10 +222,10 @@ public function getTypeName(array $parameter, array $method = []): string
222
222
return "Partial<Preferences> " ;
223
223
case 'document ' :
224
224
if ($ method ['method ' ] === 'post ' ) {
225
- return "Document extends Models.DefaultDocument ? Models.DataWithoutDocumentKeys : Omit<Document, keyof Models.Document> " ;
225
+ return "Document extends Models.DefaultDocument ? Partial< Models.Document> & Record<string, any> : Partial<Models.Document> & Partial< Omit<Document, keyof Models.Document> > " ;
226
226
}
227
227
if ($ method ['method ' ] === 'patch ' ) {
228
- return "Partial< Document extends Models.DefaultDocument ? Models.DataWithoutDocumentKeys : Omit<Document, keyof Models.Document>> " ;
228
+ return "Document extends Models.DefaultDocument ? Partial< Models.Document> & Record<string, any> : Partial<Models.Document> & Partial< Omit<Document, keyof Models.Document>> " ;
229
229
}
230
230
}
231
231
break ;
You can’t perform that action at this time.
0 commit comments