@stencil/router
Version:
22 lines (21 loc) • 732 B
TypeScript
import { ComponentInterface } from '../../stencil.core';
import { QueueApi } from '@stencil/core/dist/declarations';
import { LocationSegments, MatchResults, RouteViewOptions } from '../../global/interfaces';
interface Child {
el: HTMLStencilRouteElement;
match: MatchResults | null;
}
export declare class RouteSwitch implements ComponentInterface {
el: HTMLElement;
queue: QueueApi;
group: string;
scrollTopOffset?: number;
location?: LocationSegments;
routeViewsUpdated?: (options: RouteViewOptions) => void;
activeIndex?: number;
subscribers: Child[];
componentWillLoad(): void;
regenerateSubscribers(newLocation: LocationSegments): Promise<void>;
render(): any;
}
export {};