Update watcher function. Add tests

This commit is contained in:
2026-03-21 09:03:26 +01:00
parent 5c53e94a3e
commit cf010ad4f5
53 changed files with 1329 additions and 97 deletions
+5 -1
View File
@@ -50,7 +50,11 @@ export type BunextConfig = {
development?: boolean;
middleware?: (
params: BunextConfigMiddlewareParams,
) => Promise<Response | undefined> | Response | undefined;
) =>
| Promise<Response | Request | undefined>
| Response
| Request
| undefined;
defaultCacheExpiry?: number;
websocket?: WebSocketHandler<any>;
serverOptions?: ServeOptions;