You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I attempt to pass an AbortSignal created using the browser's native AbortController to an SDK client, I get a type error:
Argument of type 'AbortSignal' is not assignable to parameter of type 'import("/Volumes/Brazil/IhmCartwheel/src/IhmCartwheel/image/node_modules/.pnpm/amazon.goshawk.aws.a2z.com/@aws-sdk/types/1.0.0-beta.4/node_modules/@aws-sdk/types/build/abort").AbortSignal'. Types of property 'onabort' are incompatible. Type '((this: AbortSignal, ev: Event) => any) | null' is not assignable to type 'AbortHandler | undefined'. Type 'null' is not assignable to type 'AbortHandler | undefined'.ts(2345)
This also prevents using the NodeJS abort-controller package. The WHATWG spec for this API requires that the handler defaults to null, not undefined.
I don't want to use @aws-sdk/abort-controller because I have some library functions which need to interoperate with both the SDK and other AbortSignal consumers using the DOM implementation.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the bug
When I attempt to pass an AbortSignal created using the browser's native AbortController to an SDK client, I get a type error:
This also prevents using the NodeJS
abort-controller
package. The WHATWG spec for this API requires that the handler defaults tonull
, notundefined
.I don't want to use
@aws-sdk/abort-controller
because I have some library functions which need to interoperate with both the SDK and otherAbortSignal
consumers using the DOM implementation.SDK version number
1.0.0-beta.4
Is the issue in the browser/Node.js? Both
Details of the browser/Node.js version N/A
To Reproduce (observed behavior)
Expected behavior
Should pass type check
Screenshots
N/A
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: