toTypeRouteSegment
Resolve the case-preserved URL/ROUTE segment for a type (slug frontmatter + internal links).
Import:
import { toTypeRouteSegment } from '@mnaoumov/typescript-dev-toolkit/docs-site/api-doc-link-rendering';Signature:
function toTypeRouteSegment(namespace: string, name: string): stringParameters:
| Parameter | Type | Description |
|---|---|---|
namespace |
string | The type’s namespace. |
name |
string | The type’s name. |
Returns: string — The segment.