Skip to content

Commit

Permalink
chore: added missing type for router.rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed Feb 10, 2025
1 parent e8985a2 commit 0232ed3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion typings/lib/extra/tools/ssr4.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export function dynamicImport(specifier: any): Promise<any>;
export function renderModule(module: (SvelteComponentDev | {
default: SvelteComponentDev;
}) & {
Expand Down
3 changes: 3 additions & 0 deletions typings/lib/extra/vite-plugin/vite-plugin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export default function RoutifyPlugin(input?: Partial<VitePluginOptionsInput> |
outDir: string;
};
envPrefix: string[];
define: {
'import.meta.env.ROUTIFY_SSR_ENABLE': string;
};
};
transformIndexHtml: (html: any) => any;
configureServer: (server: any) => () => any;
Expand Down
1 change: 1 addition & 0 deletions typings/lib/runtime/Router/Router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export class Router implements Readable<Router> {
* function that resolves after the active route has changed
* @returns {Promise<Route>} */
ready: () => Promise<Route>;
rendered: () => Promise<void>;
/** @type {Map<string, Route>} */
history: Map<string, Route>;
parentCmpCtx: any;
Expand Down

0 comments on commit 0232ed3

Please sign in to comment.