Skip to content

Commit

Permalink
fix:RouteConfig typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
barronhagerman committed Jan 10, 2024
1 parent cebe350 commit 2a9ed4d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions router.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@
*/

/**
* @typedef {Object} RouteConfig
* @property {string} id
* @property {string} tagName
* @property {string} path
* @property {Array<string>=} params
* @property {boolean=} authenticated
* @property {Array<RouteConfig>=} subRoutes
* @typedef {{
* id: string,
* tagName: string,
* path: string,
* params: (Array<string>|undefined),
* authenticated: (boolean|undefined),
* subRoutes: (Array<RouteConfig>|undefined),
* }}
*/
let RouteConfig;

import {Context, Page} from './lib/page.js';
import RouteTreeNode from './lib/route-tree-node.js';
Expand Down

0 comments on commit 2a9ed4d

Please sign in to comment.