diff options
| author | Kenta Moriuchi <moriken@kimamass.com> | 2024-07-23 05:02:39 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-22 22:02:39 +0200 |
| commit | 715675565a928a7ac819b89fa40d8b74e7e1c8bc (patch) | |
| tree | 06db9c2a77abd67491586e72522859f4010317e9 /tests/specs/run/dom_readable_stream_from | |
| parent | 6960637b5ce20f717d853ef42d6d8132297ab64b (diff) | |
fix(types): Conform lib.deno_web.d.ts to lib.dom.d.ts and lib.webworker.d.ts (#24599)
Fix #24578
Fix #21981
Diffstat (limited to 'tests/specs/run/dom_readable_stream_from')
4 files changed, 18 insertions, 0 deletions
diff --git a/tests/specs/run/dom_readable_stream_from/__test__.jsonc b/tests/specs/run/dom_readable_stream_from/__test__.jsonc new file mode 100644 index 000000000..8955fcda2 --- /dev/null +++ b/tests/specs/run/dom_readable_stream_from/__test__.jsonc @@ -0,0 +1,4 @@ +{ + "args": "run --check main.ts", + "output": "main.out" +} diff --git a/tests/specs/run/dom_readable_stream_from/deno.json b/tests/specs/run/dom_readable_stream_from/deno.json new file mode 100644 index 000000000..7708b998a --- /dev/null +++ b/tests/specs/run/dom_readable_stream_from/deno.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "lib": [ + "deno.ns", + "dom" + ] + } +} diff --git a/tests/specs/run/dom_readable_stream_from/main.out b/tests/specs/run/dom_readable_stream_from/main.out new file mode 100644 index 000000000..0b8707ea3 --- /dev/null +++ b/tests/specs/run/dom_readable_stream_from/main.out @@ -0,0 +1,2 @@ +Check [WILDCARD]main.ts +ReadableStream[WILDCARD] diff --git a/tests/specs/run/dom_readable_stream_from/main.ts b/tests/specs/run/dom_readable_stream_from/main.ts new file mode 100644 index 000000000..70025b4e9 --- /dev/null +++ b/tests/specs/run/dom_readable_stream_from/main.ts @@ -0,0 +1,4 @@ +const asyncIterable = (async function* () { + yield* [1, 2, 3]; +})(); +console.log(ReadableStream.from(asyncIterable)); |
