Type guard to check if an object implements ServiceClient.
Object to check
True if obj implements ServiceClient interface
if (isServiceClient(maybeClient)) { const result = await maybeClient.healthCheck();} Copy
if (isServiceClient(maybeClient)) { const result = await maybeClient.healthCheck();}
Type guard to check if an object implements ServiceClient.