@adonisjs/inertia 1.0.0-23 → 1.0.0-24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/src/types.d.ts
CHANGED
|
@@ -123,5 +123,12 @@ interface PageObject<TPageProps extends PageProps = PageProps> {
|
|
|
123
123
|
* ```
|
|
124
124
|
*/
|
|
125
125
|
type InferPageProps<Controller, Method extends keyof Controller> = Controller[Method] extends (...args: any[]) => any ? Serialize<Exclude<Awaited<ReturnType<Controller[Method]>>, string>['props']> : never;
|
|
126
|
+
/**
|
|
127
|
+
* Signature for the method in the SSR entrypoint file
|
|
128
|
+
*/
|
|
129
|
+
type RenderInertiaSsrApp = (page: PageObject) => Promise<{
|
|
130
|
+
head: string[];
|
|
131
|
+
body: string;
|
|
132
|
+
}>;
|
|
126
133
|
|
|
127
|
-
export type { AssetsVersion, Data, InertiaConfig, InferPageProps, MaybePromise, PageObject, PageProps, ResolvedConfig, SharedData, SharedDatumFactory };
|
|
134
|
+
export type { AssetsVersion, Data, InertiaConfig, InferPageProps, MaybePromise, PageObject, PageProps, RenderInertiaSsrApp, ResolvedConfig, SharedData, SharedDatumFactory };
|