TypedocContext
interfaceinterface TypedocContextPROPERTIES
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| apiDocs | ApiDocs | All parsed API documentation |
| baseUrl | string | The resolved base URL (from options.baseUrl, normalized) |
| navigation | NavigationItem[] | Navigation items for sidebar |
METHODS
applyBaseUrl(path: string): stringPrepend the deployment base URL to a route-relative path
getAllPrerenderUrls(): string[]Get all prerender URLs (packages + exports)
getExportUrls(): string[]Get all export URLs (for pre-rendering)
getLinkedExport(packageSlug: string, symbolSlug: string): LinkedApiExport | nullGet a linked export by package + symbol slug
getPackage(packageSlug: string): ApiPackage | nullGet package info
getPackageUrls(): string[]Get all package-level URLs (for pre-rendering)
getRehypePlugins(): Plugin[]Get pre-configured rehype-typedoc plugins for use in custom unified pipelines
getTypeRef(exp: ApiExport): Type | undefinedGet the raw TypeDoc `Type` object for an export (server-side use only, never serialized). **Important:** `exp` must be the original `ApiExport` reference stored in `apiDocs` (e.g. from `apiDocs.packages[slug].exports`). Passing a `LinkedApiExport` returned by `getLinkedExport()` will always return `undefined` because `LinkedApiExport` is a shallow copy and will not match the WeakMap key.