@azure/core-auth
Version:
Provides low-level interfaces and helper methods for authentication in Azure SDK
16 lines • 474 B
TypeScript
/**
* Represents a credential defined by a static API key.
*/
export interface KeyCredential {
/**
* The value of the API key represented as a string
*/
readonly key: string;
}
/**
* Tests an object to determine whether it implements KeyCredential.
*
* @param credential - The assumed KeyCredential to be tested.
*/
export declare function isKeyCredential(credential: unknown): credential is KeyCredential;
//# sourceMappingURL=keyCredential.d.ts.map