smolter
Types

NextHandler

Server/application integration contract.

Compatibility

ReactServer/build API, not a browser import.
React SSRAvailable to this renderer's SSR integration; browser event handlers run after hydration.
PreactServer/build API, not a browser import.
Preact SSRAvailable to this renderer's SSR integration; browser event handlers run after hydration.

Import from @kasperrt/smolter/utils/http

Signature

type NextHandler = (error?: unknown) => void;

Contract

This type describes the optional server or Vite integration. See the Express and virtual routes guides for complete usage. It is not a browser runtime dependency.

type NextHandler = (error?: unknown) => void;
View implementation ↗