UNPKG

@vaadin/hilla-file-router

Version:

Hilla file-based router

16 lines (15 loc) 545 B
import type { RouteMeta } from "./collectRoutesFromFS.js"; /** * The information about a particular server-side layout. */ export type LayoutMeta = Readonly<{ path: string }>; /** * Enables Flow layout flag on the matching routes based on the information from the layouts JSON file. * * @param routeMeta - The routes tree to process. * @param layoutsFile - The server layouts JSON file. * @returns Processed routes tree. */ export default function applyLayouts(routeMeta: readonly RouteMeta[], layoutsFile: URL): Promise<readonly RouteMeta[]>;