Update pages server function(s)
This commit is contained in:
Vendored
+5
-4
@@ -70,7 +70,7 @@ export type BunxRouteParams = {
|
||||
/**
|
||||
* Intercept and Transform the response object
|
||||
*/
|
||||
resTransform?: (res: Response) => Promise<Response> | Response;
|
||||
res_transform?: (res: Response) => Promise<Response> | Response;
|
||||
server?: Server<any>;
|
||||
};
|
||||
export interface PostInsertReturn {
|
||||
@@ -207,17 +207,18 @@ export type BunextPageModuleServerReturn<T extends {
|
||||
props?: T;
|
||||
query?: Q;
|
||||
redirect?: BunextPageModuleServerRedirect;
|
||||
responseOptions?: ResponseInit;
|
||||
response_options?: ResponseInit;
|
||||
/**
|
||||
* Whether to cache the current page
|
||||
*/
|
||||
cachePage?: BunextCachePageType;
|
||||
cache_page?: BunextCachePageType;
|
||||
/**
|
||||
* Expiry time of the cache in seconds
|
||||
*/
|
||||
cacheExpiry?: number;
|
||||
cache_expiry?: number;
|
||||
url?: BunextPageModuleServerReturnURLObject;
|
||||
error?: string;
|
||||
res_transform?: (res: Response) => Promise<Response> | Response;
|
||||
};
|
||||
export type BunextCachePageType = boolean | ((params: {
|
||||
ctx: Omit<BunxRouteParams, "body">;
|
||||
|
||||
Reference in New Issue
Block a user