From c4f5bc295c2c41a9132909d50fab20aaf3598d71 Mon Sep 17 00:00:00 2001 From: v1rtl Date: Fri, 4 Mar 2022 21:52:01 +0200 Subject: [PATCH] fix typoe error --- src/render.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/render.ts b/src/render.ts index be425ea7..02ea3136 100644 --- a/src/render.ts +++ b/src/render.ts @@ -5,7 +5,6 @@ import { BaseLocationHook, Router } from "wouter"; import { HelmetProvider } from "react-helmet"; import app from "app"; import { isDev } from "./env.ts"; - import type { Navigate, RenderOptions } from "./types.ts"; // FIXME: these react types are wrong now @@ -153,7 +152,6 @@ export default render; const encodeStream = (readable: ReadableStream) => new ReadableStream({ - //@ts-ignore undefined start(controller) { return (async () => { const encoder = new TextEncoder(); @@ -168,7 +166,7 @@ const encodeStream = (readable: ReadableStream) => } else if (read.value instanceof Uint8Array) { controller.enqueue(read.value); } else { - return null; + return undefined; } } } finally {