Update page server types
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ export default async function grabPageServerRes({ url, query, routeParams, serve
|
||||
const serverData = await server_function({
|
||||
...routeParams,
|
||||
query: { ...routeParams.query, ...query },
|
||||
props: init_props,
|
||||
props: init_props || undefined,
|
||||
});
|
||||
return _.merge(default_props, serverData);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -213,7 +213,7 @@ export type BunextPageServerFn<T extends {
|
||||
} = {
|
||||
[k: string]: any;
|
||||
}> = (ctx: Omit<BunxRouteParams, "body"> & {
|
||||
props?: any;
|
||||
props?: T;
|
||||
}) => Promise<BunextPageModuleServerReturn<T>>;
|
||||
export type BunextRouteConfig = {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user