Type guard: checks whether the transport is an HTTP-based mode (http or https).
After this guard, TypeScript narrows to HttpTransportOptions | HttpsTransportOptions, allowing direct access to port, host, stateless, etc.
HttpTransportOptions | HttpsTransportOptions
port
host
stateless
Type guard: checks whether the transport is an HTTP-based mode (http or https).
After this guard, TypeScript narrows to
HttpTransportOptions | HttpsTransportOptions, allowing direct access toport,host,stateless, etc.