diff --git a/router.js b/router.js index 13026e9..31d344a 100644 --- a/router.js +++ b/router.js @@ -16,14 +16,16 @@ */ /** - * @typedef {Object} RouteConfig - * @property {string} id - * @property {string} tagName - * @property {string} path - * @property {Array=} params - * @property {boolean=} authenticated - * @property {Array=} subRoutes + * @typedef {{ + * id: string, + * tagName: string, + * path: string, + * params: (Array|undefined), + * authenticated: (boolean|undefined), + * subRoutes: (Array|undefined), + * }} */ +let RouteConfig; import {Context, Page} from './lib/page.js'; import RouteTreeNode from './lib/route-tree-node.js';