Skip to content

Commit 1eef2c9

Browse files
authored
Adding the missing export for KeyCredential in ts http runtime lib (Azure#27631)
Adding the missing export for KeyCredential for ts http runtime lib
1 parent 7f4f9b2 commit 1eef2c9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

sdk/core/ts-http-runtime/review/ts-http-runtime.api.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export function addCredentialPipelinePolicy(pipeline: Pipeline, baseUrl: string,
4141
// @public
4242
export interface AddCredentialPipelinePolicyOptions {
4343
clientOptions?: ClientOptions;
44-
// Warning: (ae-forgotten-export) The symbol "KeyCredential" needs to be exported by the entry point index.d.ts
4544
credential?: TokenCredential | KeyCredential;
4645
}
4746

@@ -363,6 +362,11 @@ export function isRestError(e: unknown): e is RestError;
363362
// @public
364363
export const isWebWorker: boolean;
365364

365+
// @public
366+
export interface KeyCredential {
367+
readonly key: string;
368+
}
369+
366370
// @public
367371
export interface KeyObject {
368372
passphrase?: string | undefined;

sdk/core/ts-http-runtime/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export {
6969
export { AbortSignalLike } from "./abort-controller/AbortSignalLike";
7070
export { AbortError } from "./abort-controller/AbortError";
7171
export { AccessToken, GetTokenOptions, TokenCredential } from "./auth/tokenCredential";
72+
export { KeyCredential } from "./auth/keyCredential";
7273
export {
7374
Instrumenter,
7475
InstrumenterSpanOptions,

0 commit comments

Comments
 (0)