]> git.ardis.lu - csvio/commit
Explicitly import `ReadableStream` to make TS understand `ReadableStream.from`
authorArdis Lu <ardisglu@gmail.com>
Sun, 25 May 2025 04:55:24 +0000 (21:55 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 25 May 2025 04:55:24 +0000 (21:55 -0700)
commitfb605b5cee09c5ef3fddff28978fde89ac8cf5c7
tree3f2e77d3920a590411a0db0e6f40c68e91746906
parent3c0015a09fb543770d2eac59c9ee520b4470519a
Explicitly import `ReadableStream` to make TS understand `ReadableStream.from`

This change does not affect the code execution, but it makes the TS language server understand the `ReadableStream.from` static function. Without the explicit import, it is not possible using only JSDoc to merge the `ReadableStream` instance interface with the `ReadableStream` constructor because they share the same name.
test/core.test.js
test/utils.js
This page took 0.04542 seconds and 4 git commands to generate.