Skip to content
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

Missing TReturn and TNext generic types in AsyncIterable<T> #24837

Open
raaymax opened this issue Aug 1, 2024 · 1 comment
Open

Missing TReturn and TNext generic types in AsyncIterable<T> #24837

raaymax opened this issue Aug 1, 2024 · 1 comment
Labels
upstream Changes in upstream are required to solve these issues

Comments

@raaymax
Copy link

raaymax commented Aug 1, 2024

current:

interface AsyncIterable<T> {
    [Symbol.asyncIterator](): AsyncIterator<T>;
}

expected type:

interface AsyncIterable<T, TReturn = any, TNext = undefined> {
    [Symbol.asyncIterator](): AsyncIterator<T, TReturn, TNext>;
}

version:

deno 1.45.5 (release, aarch64-apple-darwin)
v8 12.7.224.13
typescript 5.5.2
@raaymax
Copy link
Author

raaymax commented Aug 1, 2024

@lucacasonato lucacasonato added the upstream Changes in upstream are required to solve these issues label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Changes in upstream are required to solve these issues
Projects
None yet
Development

No branches or pull requests

2 participants