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