-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
ReadableStream.from not in documentation or types #21733
Comments
What is your deno version? Do you modify the type settings? |
I'm on Deno 1.39.1 with I do now see the Here's the Deno error:
However, when I try to create a minimal reproducing example, it does pass the typechecker, so it looks like something else is going on here. (Interestingly, my MRE typechecks with Attempted MREimport { CsvStringifyStream } from "std/csv/mod.ts";
let perfOut = await Deno.open("build/performance.csv", {
create: true,
write: true,
truncate: true,
});
let recOut = new CsvStringifyStream({
columns: ["name", "startTime", "duration", "detail"],
});
let reader = ReadableStream.from(
performance.getEntriesByType("measure") as unknown as Record<string, unknown>[],
);
await reader.pipeThrough(recOut).pipeThrough(new TextEncoderStream()).pipeTo(perfOut.writable); |
While it does seem to have type checking for the ReadableStream.from(example())
function* example() {
}
|
Seems the |
#19417 added the
ReadableStream.from
method, and various functions instd
are marked as deprecated, but this method appears in neither the documentation nor the type definitions. It works, but code using it failsdeno check
.The text was updated successfully, but these errors were encountered: