UNPKG

@furystack/shades

Version:

A lightweight UI framework for FuryStack with JSX support

13 lines 640 B
import type { Token } from '@furystack/inject'; import { ObservableValue } from '@furystack/utils'; import type { MatchChainEntry } from '../components/nested-router.js'; /** * Singleton service that exposes the current match chain from the nearest * NestedRouter as an observable. Consumers (breadcrumbs, document title, * navigation trees) subscribe to this instead of re-running route matching. */ export interface RouteMatchService { readonly currentMatchChain: ObservableValue<MatchChainEntry[]>; } export declare const RouteMatchService: Token<RouteMatchService, 'singleton'>; //# sourceMappingURL=route-match-service.d.ts.map