mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
c3a684c7ed
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
12 lines
439 B
TypeScript
12 lines
439 B
TypeScript
/**
|
|
* 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: Object, basePath?: string | undefined): Object;
|