dumi
Version:
📖 Documentation Generator of React Component
19 lines (18 loc) • 532 B
TypeScript
import type { IRouteMeta, IRoutesById } from './types';
export declare function getCachedRouteMeta(route: IRoutesById[string], revision: number): IRouteMeta;
/**
* hook for get matched route
* @internal internal use. Do not use in your production code.
*/
export declare const useMatchedRoute: () => {
[key: string]: any;
path?: string;
parentId?: string;
meta?: IRouteMeta;
id: string;
redirect?: string;
};
/**
* hook for get matched route meta
*/
export declare const useRouteMeta: () => IRouteMeta;