@tempots/ui

ExtractParams type

Extracts the parameters from a string literal representing a route path.

Signature:

export type ExtractParamsextends string> = SplitLiteral'/'> extends infer T ? T extends unknown[] ? ExtractParamsFromTuple : never : never;

References: ExtractParamsFromTuple