From a5f92224b586289fc72f0abdb68b08eef9f017db Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Wed, 22 Mar 2023 15:01:01 -0700 Subject: Fix types (#2453) * WIP * WIP * WIP * WIP * Improve typechecking in type files * Fix typechecking * Update * Update submodule * CI for typechecking * Add ci * Update commands * Format after build * Dont use bunx * Rename job * Use nodemodules prettier * Update workflow * Use symlink * Debug * Debug * Clean up and rename jobs --- examples/http-file-extended.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/http-file-extended.ts') diff --git a/examples/http-file-extended.ts b/examples/http-file-extended.ts index 7ae515f14..14886af5e 100644 --- a/examples/http-file-extended.ts +++ b/examples/http-file-extended.ts @@ -29,7 +29,7 @@ serve({ if (req.headers.has("range")) { opts.code = 206; - let [x, y] = req.headers.get("range").replace("bytes=", "").split("-"); + let [x, y] = req.headers.get("range")!.replace("bytes=", "").split("-"); let end = (opts.end = parseInt(y, 10) || stats.size - 1); let start = (opts.start = parseInt(x, 10) || 0); -- cgit v1.2.3