summaryrefslogtreecommitdiff
path: root/includes/external/school/node_modules/matchit/index.d.ts
blob: fb6c0dd186214afeb20299008dacb4ae0eaca291 (plain)
1
2
3
4
5
6
7
8
9
10
11
export interface Segment {
	old: string;
	type: number;
	val: string;
}

export type Route = Segment[];

export function exec(url: string, match: Route): Record<string, string>;
export function match(path: string, routes: Route[]): Route;
export function parse(path: string): Route;