You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: endpoints/generic/GenericCollectionEndpoint.ts
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -70,22 +70,33 @@ export class GenericCollectionEndpoint<TEntity, TElementEndpoint extends Element
70
70
* Adds a `TEntity` as a new element to the collection.
71
71
* @param entity The new `TEntity`.
72
72
* @param signal Used to cancel the request.
73
-
* @returnsThe `TEntity` as returned by the server, possibly with additional fields set. undefined if the server does not respond with a result entity.
73
+
* @returnsAn endpoint for the newly created entity; `undefined` if the server returned neither a "Location" header nor an entity with an ID in the response body.
0 commit comments