Fix types error
This commit is contained in:
parent
6477f446d1
commit
972f6945c2
4
dist/types/index.d.ts
vendored
4
dist/types/index.d.ts
vendored
@ -295,9 +295,11 @@ export type GrabTSXModuleBatchMap = {
|
||||
tsx: string;
|
||||
page_file_path: string;
|
||||
};
|
||||
export type BunextAPIRouteHandler<T extends BunextAPIRouteJSONRes = BunextAPIRouteJSONRes & {
|
||||
export type BunextAPIRouteHandler<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;
|
||||
};
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/bunext",
|
||||
"version": "1.0.64",
|
||||
"version": "1.0.65",
|
||||
"main": "dist/index.js",
|
||||
"module": "index.ts",
|
||||
"dependencies": {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import type {
|
||||
APIResponseObject,
|
||||
BunextAPIRouteHandler,
|
||||
BunextServerRouteConfig,
|
||||
BunxRouteParams,
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user