Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Jun 18, 2024
1 parent 04e65c0 commit b622d50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/abort-controller/src/AbortController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions packages/abort-controller/src/AbortSignal.ts
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit b622d50

Please sign in to comment.