Cloud API Overview > @adpt/cloud > targetPort
targetPort() function
Computes the target port that will be used for a NetworkService
Signature:
export declare function targetPort(elemOrProps: NetworkServiceProps | AdaptElement): ServicePort;
Parameters
| Parameter | Type | Description |
|---|---|---|
| elemOrProps | NetworkServiceProps |AdaptElement | a NetworkService element or its props |
Returns:
The target port of the NetworkService object