This commit is contained in:
2026-04-09 07:47:38 +01:00
parent ab6fc3be26
commit eb0721f94b
47 changed files with 826 additions and 136 deletions
+15 -4
View File
@@ -1,5 +1,5 @@
import type { MatchedRoute, Server, WebSocketHandler } from "bun";
import type { DetailedHTMLProps, FC, HtmlHTMLAttributes, JSX, PropsWithChildren, ReactNode } from "react";
import type { DetailedHTMLProps, FC, HtmlHTMLAttributes, PropsWithChildren } from "react";
export type ServerProps = {
params: Record<string, string>;
searchParams: Record<string, string>;
@@ -128,7 +128,7 @@ export type PageDistGenParams = {
page_file: string;
};
export type LivePageDistGenParams = {
component: ReactNode;
component?: FC;
pageProps?: any;
module?: BunextPageModule;
root_module?: BunextRootModule;
@@ -247,7 +247,7 @@ export type BunextPageModuleMetadata = {
description?: string;
};
export type GrabPageComponentRes = {
component?: JSX.Element;
component?: FC;
serverRes?: BunextPageModuleServerReturn;
routeParams?: BunxRouteParams;
bundledMap?: BundlerCTXMap;
@@ -257,7 +257,7 @@ export type GrabPageComponentRes = {
};
export type BunextRootModule = BunextPageModule;
export type GrabPageReactBundledComponentRes = {
component: JSX.Element;
component?: FC;
server_res?: BunextPageModuleServerReturn;
tsx?: string;
};
@@ -288,3 +288,14 @@ export type BunextCacheFileMeta = {
expiry_seconds?: number;
};
export type BunextRootComponentProps = PropsWithChildren & BunextPageProps;
export type GrabTSXModuleSingleParams = {
tsx: string;
page_file_path: string;
};
export type GrabTSXModuleBatchParams = {
tsx_map: GrabTSXModuleBatchMap[];
};
export type GrabTSXModuleBatchMap = {
tsx: string;
page_file_path: string;
};