The dev HMR client declares `reconnectTimer` as `number`, but the runtime type of `setTimeout`'s return value is a `Timeout` object, so `deno check` now fails with `TS2322: Type 'Timeout' is not assignable to type 'number'` at `packages/fresh/src/runtime/client/dev_hmr.ts:32`. This is blocking every PR's type check job. Switching the annotation to `ReturnType<typeof setTimeout>` keeps the declaration accurate without committing to a specific runtime's timer type.
Fresh
Fresh is a small, fast and extensible full stack web framework built on Web Standards. It’s designed for building high-quality, performant, and personalized web applications.
Usage
Generate a new Fresh project with @fresh/init:
deno run -Ar jsr:@fresh/init
Add middleware, routes, & endpoints as needed via the routes/ folder or
directly on the App instance.
import { App } from "fresh";
const app = new App()
.get("/", () => new Response("hello world"))
.get("/jsx", (ctx) => ctx.render(<h1>render JSX!</h1>));
app.listen();
For more information on getting started with Fresh, head on over to the documentation.