summaryrefslogtreecommitdiff
path: root/cli/js/streams/readable-internals.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/streams/readable-internals.ts')
-rw-r--r--cli/js/streams/readable-internals.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/streams/readable-internals.ts b/cli/js/streams/readable-internals.ts
index 36f4223d7..67f5a69b1 100644
--- a/cli/js/streams/readable-internals.ts
+++ b/cli/js/streams/readable-internals.ts
@@ -259,7 +259,7 @@ export function isReadableStreamLocked<OutputType>(
export function readableStreamGetNumReadIntoRequests<OutputType>(
stream: SDReadableStream<OutputType>
-): number | undefined {
+): number {
// TODO remove the "as unknown" cast
// This is in to workaround a compiler error
// error TS2352: Conversion of type 'SDReadableStreamReader<OutputType>' to type 'SDReadableStreamBYOBReader' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.