Skip to content

Commit 0232ed3

Browse files
chore: added missing type for router.rendered
1 parent e8985a2 commit 0232ed3

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

typings/lib/extra/tools/ssr4.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export function dynamicImport(specifier: any): Promise<any>;
21
export function renderModule(module: (SvelteComponentDev | {
32
default: SvelteComponentDev;
43
}) & {

typings/lib/extra/vite-plugin/vite-plugin.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export default function RoutifyPlugin(input?: Partial<VitePluginOptionsInput> |
1717
outDir: string;
1818
};
1919
envPrefix: string[];
20+
define: {
21+
'import.meta.env.ROUTIFY_SSR_ENABLE': string;
22+
};
2023
};
2124
transformIndexHtml: (html: any) => any;
2225
configureServer: (server: any) => () => any;

typings/lib/runtime/Router/Router.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export class Router implements Readable<Router> {
5151
* function that resolves after the active route has changed
5252
* @returns {Promise<Route>} */
5353
ready: () => Promise<Route>;
54+
rendered: () => Promise<void>;
5455
/** @type {Map<string, Route>} */
5556
history: Map<string, Route>;
5657
parentCmpCtx: any;

0 commit comments

Comments
 (0)