Skip to content

getEndpoint

getEndpoint<T>(endpointType, primaryKey): T

Gets or creates an Endpoint instance.

Type parameters

T extends Endpoint

Parameters

endpointType: (primaryKey) => T

The class type that extends Endpoint. (E.g. MyEndpoint)

primaryKey: string

The primary key used to uniquely identify the Endpoint instance.

Returns

T

The Endpoint instance.


Generated using typedoc-plugin-markdown and TypeDoc