Skip to content

[F] getClient

function getClient(context, type): undefined | SdkClient;

Return the client object for the given namespace or interface, or undefined if the given namespace or interface is not a client.

ParameterTypeDescription
contextTCGCContextTCGCContext
typeInterface | NamespaceType to check

undefined | SdkClient

Client or undefined