Skip to content

Commit 37fb7cf

Browse files
committed
Made GenericCollectionEndpoint constructor public
1 parent 01e69f2 commit 37fb7cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

endpoints/generic/GenericCollectionEndpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class GenericCollectionEndpoint<TEntity, TElementEndpoint extends Endpoin
1515
* @param relativeUri The URI of this endpoint relative to the `referrer`'s. Add a `./` prefix here to imply a trailing slash in the `referrer`'s URI.
1616
* @param elementEndpoint A factory method for creating instances of `TElementEndpoint`.
1717
*/
18-
protected constructor(referrer: Endpoint, relativeUri: URL | string, private readonly elementEndpoint: new (referrer: Endpoint, uri: URL) => TElementEndpoint) {
18+
constructor(referrer: Endpoint, relativeUri: URL | string, private readonly elementEndpoint: new (referrer: Endpoint, uri: URL) => TElementEndpoint) {
1919
super(referrer, relativeUri);
2020
this.setDefaultLinkTemplate("child", "./{id}");
2121
}

0 commit comments

Comments
 (0)