UNPKG

@azure/event-hubs

Version:
12 lines 471 B
// 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