From 4902a1cacb0348efde9ab342172f2706ac27e837 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Thu, 14 Nov 2019 15:05:36 -0500 Subject: Turn on TS strict mode for deno_typescript (#3330) --- cli/js/streams/readable-internals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/js/streams') 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( export function readableStreamGetNumReadIntoRequests( stream: SDReadableStream -): number | undefined { +): number { // TODO remove the "as unknown" cast // This is in to workaround a compiler error // error TS2352: Conversion of type 'SDReadableStreamReader' 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. -- cgit v1.2.3