export type IfIncludesParam = IsString extends true ? T extends `${string}:${string}` ? true : false : false; export type IncludeSlash = IsString extends true ? T extends `/${string}` ? T : `/${T}` : ''; export type IsHashPath = S extends `#${string}` ? true : false; export type IsString = T extends string ? T extends '' ? false : true : false; export type ParamString = `:${T}`; export type Replace = T extends `${infer L}${S}${infer R}` ? Replace : `${A}${T}`; export type ResolveSlash = Args extends [infer E, ...infer R] ? `${E extends string ? E : ''}${IsString extends true ? IncludeSlash> : ResolveSlash}` : '';