Newer
Older
alert / js / node_modules / flarum / common / utils / mapRoutes.d.ts
@Réz István Réz István on 18 Nov 2021 421 bytes first commit
/**
 * 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
 * @param {Object} routes
 * @param {String} [basePath]
 * @return {Object}
 */
export default function mapRoutes(routes: any, basePath?: string): any;