ts-routes
Version:
Strongly typed routes management
8 lines (7 loc) • 357 B
TypeScript
import { Optionality } from "./helpers";
import PathParamDescription from "./PathParamDescription";
export default class SegmentPattern<TPathParamsDescription extends PathParamDescription<string, Optionality>[]> {
readonly pattern: string;
readonly params: TPathParamsDescription;
constructor(pattern: string, params: TPathParamsDescription);
}