We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Something like this, but need to actually go through and figure out what everything is based on https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/stream/web.d.ts#L17 and https://github.com/denoland/deno/blob/7281775381cda79ef61df27820387dc2c74e0384/ext/web/lib.deno_web.d.ts
// in https://github.com/denoland/dnt/blob/main/lib/shims.ts function getNodeWebStreamsShim(): Shim { return { package: { name: "node:stream/web", }, globalNames: [ "ReadableStream", "WritableStream", "TextDecoderStream", typeOnly("ReadableStreamController"), typeOnly("ReadableStreamDefaultReadValueResult"), typeOnly("ReadableStreamDefaultReader"), typeOnly("WritableStreamDefaultWriter"), typeOnly("QueuingStrategy"), { name: "PipeOptions", exportName: "StreamPipeOptions", typeOnly: true, }, ], }; }
Then someone could just do: nodeWebStreams: true in their shims.
nodeWebStreams: true
The text was updated successfully, but these errors were encountered:
See also: https://nodejs.org/api/webstreams.html#web-streams-api
Sorry, something went wrong.
No branches or pull requests
Something like this, but need to actually go through and figure out what everything is based on https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/stream/web.d.ts#L17 and https://github.com/denoland/deno/blob/7281775381cda79ef61df27820387dc2c74e0384/ext/web/lib.deno_web.d.ts
Then someone could just do:
nodeWebStreams: true
in their shims.The text was updated successfully, but these errors were encountered: