@vaadin/hilla-file-router
Version:
Hilla file-based router
9 lines (8 loc) • 369 B
TypeScript
import type { RouteMeta } from "./collectRoutesFromFS.js";
/**
* Creates a map of all leaf routes to their configuration. This file is used by the server to provide server-side
* routes along with managing the client-side routes.
*
* @param views - The route metadata tree.
*/
export default function createViewConfigJson(views: readonly RouteMeta[]): Promise<string>;