summaryrefslogtreecommitdiff
path: root/cli/js/streams/readable-internals.ts
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2019-11-14 15:05:36 -0500
committerGitHub <noreply@github.com>2019-11-14 15:05:36 -0500
commit4902a1cacb0348efde9ab342172f2706ac27e837 (patch)
treeabbc0dbdcc03b232d01274cea0940a377223a767 /cli/js/streams/readable-internals.ts
parent8b90b8e88325d28fe41d8312ea91417b6e66a12e (diff)
Turn on TS strict mode for deno_typescript (#3330)
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.