bxo 0.0.5-dev.82 → 0.0.5-dev.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -85,11 +85,11 @@ export type Context<P extends string = string, S extends RouteSchema | undefined
|
|
|
85
85
|
status: <T extends number>(status: T, data: InferResponse<S, T>) => Response;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
type AnyHandler = (ctx: Context<any, any>, app: BXO) => Response | string | Promise<Response | string>;
|
|
88
|
+
type AnyHandler = (ctx: Context<any, any>, app: BXO) => Response | string | BunFile | Promise<Response | string | BunFile>;
|
|
89
89
|
type Handler<P extends string, S extends RouteSchema | undefined = undefined> = (
|
|
90
90
|
ctx: Context<P, S>,
|
|
91
91
|
app: BXO
|
|
92
|
-
) => Response | string | Promise<Response | string
|
|
92
|
+
) => Response | string | BunFile | Promise<Response | string | BunFile>
|
|
93
93
|
|
|
94
94
|
// WebSocket handler types
|
|
95
95
|
export type WebSocketHandler<T = any> = {
|