Skip to content

[api-documenter] Documentation for re-exports from external packages #2672

@hiranya911

Description

@hiranya911

This is similar to #663, but focuses on the documentation aspects for external re-exports. Suppose you have an entry point that re-exports members of an external package:

export { Foo, Bar } from 'some-external-package';

I'd want to generate some documentation for Foo and Bar, ideally pointing to the documentation of the external package. Is this something that can be supported?

One somewhat hacky and restricted solution I thought of was, declaring local type aliases to the external types:

import {
  Foo as TFoo,
  Bar as TBar,
} from 'some-external-package';

/**
 * Type alias to {@link https://external.link | Foo}.
 */
export type Foo = TFoo;

But this downgrades my exports to type, which has other implications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue is asking for a new feature or design changeneeds designThe next step is for someone to propose the details of an approach for solving the problem

    Type

    No type

    Projects

    Status

    AE/AD

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions