Skip to content

toTypeFileSegment

Resolve the lowercased ON-DISK segment for a type (file path + component-import relative path).

Import:

import { toTypeFileSegment } from '@mnaoumov/typescript-dev-toolkit/docs-site/api-doc-link-rendering';

Signature:

function toTypeFileSegment(namespace: string, name: string): string

Parameters:

Parameter Type Description
namespace string The type’s namespace.
name string The type’s name.

Returns: string — The segment.