Fix types error
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import type {
|
||||
APIResponseObject,
|
||||
BunextAPIRouteHandler,
|
||||
BunextServerRouteConfig,
|
||||
BunxRouteParams,
|
||||
|
||||
+9
-1
@@ -344,7 +344,15 @@ export type BunextAPIRouteHandler<
|
||||
T extends BunextAPIRouteJSONRes = {
|
||||
[k: string]: any;
|
||||
},
|
||||
> = (params: BunxRouteParams) => Promise<Response | T> | Response | T;
|
||||
> = (
|
||||
params: BunxRouteParams,
|
||||
) =>
|
||||
| Promise<
|
||||
| Response
|
||||
| (T & Pick<BunextAPIRouteJSONRes, "bunext_api_route_res_options">)
|
||||
>
|
||||
| Response
|
||||
| (T & Pick<BunextAPIRouteJSONRes, "bunext_api_route_res_options">);
|
||||
|
||||
export type BunextAPIRouteJSONRes = {
|
||||
bunext_api_route_res_options?: ResponseInit;
|
||||
|
||||
Reference in New Issue
Block a user