type SubcommandsOf<Path extends string> = [
RoutesBelow<Path>
] extends [never]
? unknown
: {
readonly subcommands?: {
readonly [
Name in FirstName<RoutesBelow<Path>>
]?: SlashTranslation<`${Path}/${Name}`>;
};
};Path
Path extends string