fix(router): export missing UrlMatcher and UrlMatchResult types
Fixes #15140
This commit is contained in:
parent
6282a86135
commit
578bdeb522
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
|
||||
export {Data, LoadChildren, LoadChildrenCallback, ResolveData, Route, Routes, RunGuardsAndResolvers} from './config';
|
||||
export {Data, LoadChildren, LoadChildrenCallback, ResolveData, Route, Routes, RunGuardsAndResolvers, UrlMatchResult, UrlMatcher} from './config';
|
||||
export {RouterLink, RouterLinkWithHref} from './directives/router_link';
|
||||
export {RouterLinkActive} from './directives/router_link_active';
|
||||
export {RouterOutlet} from './directives/router_outlet';
|
||||
|
|
|
@ -476,6 +476,17 @@ export declare abstract class UrlHandlingStrategy {
|
|||
abstract shouldProcessUrl(url: UrlTree): boolean;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare type UrlMatcher = (segments: UrlSegment[], group: UrlSegmentGroup, route: Route) => UrlMatchResult;
|
||||
|
||||
/** @experimental */
|
||||
export declare type UrlMatchResult = {
|
||||
consumed: UrlSegment[];
|
||||
posParams?: {
|
||||
[name: string]: UrlSegment;
|
||||
};
|
||||
};
|
||||
|
||||
/** @stable */
|
||||
export declare class UrlSegment {
|
||||
readonly parameterMap: ParamMap;
|
||||
|
|
Loading…
Reference in New Issue