-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improper AsyncIterator
polyfill
#158
Comments
This is a temporary mitigation due to a upstream incompatibility between readable-stream (using Once the upstream issue is fixed, this can be removed. For more info, see DefinitelyTyped/DefinitelyTyped#71307. If you know a better way to resolve the incompatibility before the upstream bug is fixed, please let me know. |
Running into a major block with |
AsyncIterableIterator
polyfill
AsyncIterableIterator
polyfillAsyncIterator
polyfill
@zenfs/core/dist/polyfills.d.ts improperly introduces
[Symbol.asyncDispose]
member intoAsyncIterator
type, breaking other code.According to microsoft/TypeScript#59263 (comment) ,
[Symbol.asyncDispose]
member is not part of the iterator protocol and does not belong inAsyncIterator
type.Instead, it exists on
AsyncIteratorObject
, renamed fromBuiltinAsyncIterator
in TypeScript 5.6.This polyfill should be deleted in favor of referencing
AsyncIteratorObject
wherever[Symbol.asyncDispose]
is needed.package.json
tsconfig.json
main.ts
Command Line
Error Message
This error does not occur if ZenFS is not imported.
The text was updated successfully, but these errors were encountered: