UNPKG

dumi

Version:

📖 Documentation Generator of React Component

18 lines (17 loc) • 465 B
import type { IRouteMeta } from './types'; /** * hook for get matched route * @internal internal use. Do not use in your production code. */ export declare const useMatchedRoute: () => { [key: string]: any; path?: string | undefined; parentId?: string | undefined; meta?: IRouteMeta | undefined; id: string; redirect?: string | undefined; }; /** * hook for get matched route meta */ export declare const useRouteMeta: () => IRouteMeta;