Skip to content

SegParams

SegParams<S> = S extends `[...${infer Name}]` ? { [K in Name]: string } : S extends `[${infer Name}=${infer Matcher}]` ? { [K in Name]: MatcherType<Matcher> } : S extends `[${infer Name}]` ? { [K in Name]: string } : object

Defined in: components/panels.ts:47

The params contributed by a single path-template segment: [x] a string, [x=integer] a number, [...x] the rest of the path as one raw string.

S extends string