import type { Component } from 'ripple'; import type { TypedRouteComponent, ExtractPathParams } from '../types/route'; /** * Creates a type-safe route configuration that ensures the component * receives properly typed params based on the path pattern. * * @param path - The route path with parameter placeholders (e.g., "/users/:id/posts/:postId") * @param component - The component that will receive typed params * @returns A route configuration object * * @example * ```typescript * const userRoute = createTypedRoute("/users/:id", ({ params }) => { * // params.id is automatically typed as string * return