@azure/service-bus
Version:
Azure Service Bus SDK for JavaScript
12 lines • 471 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { isNamedKeyCredential, isSASCredential, isTokenCredential, } from "@azure/core-auth";
/**
* Typeguard that checks if the input is a credential type the clients accept.
* @param thing - Any object.
* @internal
*/
export function isCredential(thing) {
return isTokenCredential(thing) || isNamedKeyCredential(thing) || isSASCredential(thing);
}
//# sourceMappingURL=typeGuards.js.map