• The mapRoutes utility converts a map of named application routes into a format that can be understood by Mithril, and wraps them in route resolvers to provide each route with the current route name.

    See

    https://mithril.js.org/route.html#signature

    Parameters

    Returns Record<string, RouteResolver<Record<string, unknown>, Component<{
        routeName: string;
        [key: string]: unknown;
    }, undefined>, Record<string, unknown>>>

Generated using TypeDoc v0.23.24