diff --git a/packages/abort-controller/src/AbortController.ts b/packages/abort-controller/src/AbortController.ts index 108ed1de911..d569790ebc8 100644 --- a/packages/abort-controller/src/AbortController.ts +++ b/packages/abort-controller/src/AbortController.ts @@ -2,7 +2,10 @@ import { AbortController as DeprecatedAbortController } from "@smithy/types"; import { AbortSignal } from "./AbortSignal"; -export { DeprecatedAbortController }; +/** + * @public + */ +export { DeprecatedAbortController as IAbortController }; /** * @deprecated This implementation was added as Node.js didn't support AbortController prior to 15.x diff --git a/packages/abort-controller/src/AbortSignal.ts b/packages/abort-controller/src/AbortSignal.ts index c243fa2285f..217261b88e8 100644 --- a/packages/abort-controller/src/AbortSignal.ts +++ b/packages/abort-controller/src/AbortSignal.ts @@ -1,11 +1,14 @@ -import { AbortHandler, AbortSignal as IAbortSignal } from "@smithy/types"; +import { AbortHandler, AbortSignal as DeprecatedAbortSignal } from "@smithy/types"; -export { AbortHandler, IAbortSignal }; +/** + * @public + */ +export { AbortHandler, DeprecatedAbortSignal as IAbortSignal }; /** * @public */ -export class AbortSignal implements IAbortSignal { +export class AbortSignal implements DeprecatedAbortSignal { public onabort: AbortHandler | null = null; private _aborted = false;